1) Added conditionals around node structure, giving clean nodes for either
[deliverable/binutils-gdb.git] / gdb / doc / gdb.install-m4
CommitLineData
9bcc06ef
RP
1_dnl__ -*- Texinfo -*-
2_dnl__ Copyright (c) 1990 1991 Free Software Foundation, Inc.
3_dnl__ This file is part of the source for the GDB manual.
4_dnl__ $Id$
5@node Installing _GDBN__, Copying, Renamed Commands, Top
6@appendix Installing _GDBN__
7@cindex configuring _GDBN__
8@cindex installation
9
10The script @code{config.gdb} automates the process of preparing _GDBN__
11for installation; you can then use @code{make} to actually build it.
12The best way to build _GDBN__ is in a subdirectory that records the
13configuration options used; this gives you a clean way of building
14_GDBN__ binaries with several different configuration options.
15@code{config.gdb} doesn't depend on this---it's just a good habit. For
16example, assuming the _GDBN__ source is in a directory called
17``@code{gdb-4.0}'':
18
19@example
20cd gdb-4.0
21mkdir =sun3os4
22cd =sun3os4
23../config.gdb sun3os4
24make
25@end example
26
27@noindent
28will install _GDBN__ on a Sun 3 running SunOS 4.
29
30@table @code
31@kindex config.gdb
32@item config.gdb @var{machine}
33@itemx config.gdb -srcdir=@var{dir} @var{machine}
34This is the most usual way of configuring _GDBN__; to debug programs running
35on the same machine as _GDBN__ itself. If you wish to build the _GDBN__ binaries
36in a completely different directory from the sources, specify a path to
37the source directory using the @samp{-srcdir} option.
38
39@item config.gdb -host
40@cindex host environments
41Display a list of supported host environments for _GDBN__.
42
43@item config.gdb @var{host} @var{target}
44@itemx config.gdb -srcdir=@var{dir} @var{host} @var{target}
45@cindex cross-debugging
46_GDBN__ can also be used as a cross-debugger, running on a machine of one
47type while debugging a program running on a machine of another type.
48You configure it this way by specifying first the @var{host}, then the
49@var{target} environment on the @code{config.gdb} argument list; the
50@var{host} is where _GDBN__ runs, and the @var{target} is where your program
51runs. @xref{Remote}. Again, you can use @samp{-srcdir} to specify a
52path to the _GDBN__ source.
53
54@item config.gdb -target
55@cindex target environments
56Display a list of supported target environments for _GDBN__.
57@end table
This page took 0.025654 seconds and 4 git commands to generate.