Handle case of 32 ABI saving 32 bit registers on stack when target
[deliverable/binutils-gdb.git] / gdb / README
CommitLineData
aba7b4b6
AC
1 README for gdb-5.0 release
2 Updated 11 May 2000 by Andrew Cagney
c906108c
SS
3
4This is GDB, the GNU source-level debugger.
5A summary of new features is in the file `NEWS'.
6
7a292a7a
SS
7See the GDB home page at http://sourceware.cygnus.com/gdb/ for up to
8date release information, mailing list links and archives, etc.
c906108c
SS
9
10
11Unpacking and Installation -- quick overview
12==========================
13
aba7b4b6 14 In this release, the GDB debugger sources, the generic GNU include
c906108c
SS
15files, the BFD ("binary file description") library, the readline
16library, and other libraries all have directories of their own
aba7b4b6 17underneath the gdb-5.0 directory. The idea is that a variety of GNU
c906108c
SS
18tools can share a common copy of these things. Be aware of variation
19over time--for example don't try to build gdb with a copy of bfd from
20a release other than the gdb release (such as a binutils or gas
21release), especially if the releases are more than a few weeks apart.
22Configuration scripts and makefiles exist to cruise up and down this
23directory tree and automatically build all the pieces in the right
24order.
25
aba7b4b6
AC
26 When you unpack the gdb-5.0.tar.gz file, you'll find a directory
27called `gdb-5.0', which contains:
c906108c 28
aba7b4b6
AC
29 COPYING config.if install-sh mmalloc readline
30 COPYING.LIB config.sub intl move-if-change sim
31 Makefile.in configure libiberty mpw-README symlink-tree
32 README configure.in ltconfig mpw-build.in texinfo
33 bfd djunpack.bat ltmain.sh mpw-config.in utils
34 config etc md5.sum mpw-configure ylwrap
35 config-ml.in gdb missing mpw-install
36 config.guess include mkinstalldirs opcodes
c906108c
SS
37
38To build GDB, you can just do:
39
aba7b4b6 40 cd gdb-5.0
c906108c
SS
41 ./configure
42 make
43 cp gdb/gdb /usr/local/bin/gdb (or wherever you want)
44
c63ce875 45(Building GDB with DJGPP tools for MS-DOS/MS-Windows is slightly
aba7b4b6 46different; see the file gdb-5.0/gdb/config/djgpp/README for details.)
c63ce875 47
aba7b4b6
AC
48 This will configure and build all the libraries as well as GDB. If
49`configure' can't determine your system type, specify one as its
50argument, e.g., `./configure sun4' or `./configure decstation'.
c906108c 51
aba7b4b6
AC
52 If you get compiler errors during this stage, see the `Reporting
53Bugs' section below; there are a few known problems.
c906108c 54
aba7b4b6
AC
55 GDB requires an ISO-C (ANSI C) compiler. If you do not have an
56ISO-C compiler for your system, you may be able to download and
57install the GNU CC compiler. It is available via anonymous FTP from
58the directory `ftp://ftp.gnu.org/pub/gnu/gcc'.
c906108c 59
aba7b4b6
AC
60 GDB can be used as a cross-debugger, running on a machine of one
61type while debugging a program running on a machine of another type.
62See below.
c906108c
SS
63
64
65More Documentation
66******************
67
68 All the documentation for GDB comes as part of the machine-readable
aba7b4b6
AC
69distribution. The documentation is written in Texinfo format, which
70is a documentation system that uses a single source file to produce
71both on-line information and a printed manual. You can use one of the
72Info formatting commands to create the on-line version of the
73documentation and TeX (or `texi2roff') to typeset the printed version.
74
75 GDB includes an already formatted copy of the on-line Info version
76of this manual in the `gdb/doc' subdirectory. The main Info file is
77`gdb-5.0/gdb/doc/gdb.info', and it refers to subordinate files
78matching `gdb.info*' in the same directory. If necessary, you can
79print out these files, or read them with any editor; but they are
80easier to read using the `info' subsystem in GNU Emacs or the
81standalone `info' program, available as part of the GNU Texinfo
82distribution.
c906108c
SS
83
84 If you want to format these Info files yourself, you need one of the
85Info formatting programs, such as `texinfo-format-buffer' or
86`makeinfo'.
87
88 If you have `makeinfo' installed, and are in the top level GDB
aba7b4b6 89source directory (`gdb-5.0', in the case of version 5.0), you can make
c906108c
SS
90the Info file by typing:
91
92 cd gdb/doc
93 make info
94
95 If you want to typeset and print copies of this manual, you need
96TeX, a program to print its DVI output files, and `texinfo.tex', the
97Texinfo definitions file. This file is included in the GDB
aba7b4b6 98distribution, in the directory `gdb-5.0/texinfo'.
c906108c
SS
99
100 TeX is a typesetting program; it does not print files directly, but
101produces output files called DVI files. To print a typeset document,
102you need a program to print DVI files. If your system has TeX
103installed, chances are it has such a program. The precise command to
104use depends on your system; `lpr -d' is common; another (for PostScript
105devices) is `dvips'. The DVI print command may require a file name
106without any extension or a `.dvi' extension.
107
108 TeX also requires a macro definitions file called `texinfo.tex'.
109This file tells TeX how to typeset a document written in Texinfo
110format. On its own, TeX cannot read, much less typeset a Texinfo file.
111 `texinfo.tex' is distributed with GDB and is located in the
aba7b4b6 112`gdb-5.0/texinfo' directory.
c906108c
SS
113
114 If you have TeX and a DVI printer program installed, you can typeset
115and print this manual. First switch to the the `gdb' subdirectory of
aba7b4b6 116the main source directory (for example, to `gdb-5.0/gdb') and then type:
c906108c
SS
117
118 make gdb.dvi
119
120
121Installing GDB
122**************
123
124 GDB comes with a `configure' script that automates the process of
125preparing GDB for installation; you can then use `make' to build the
126`gdb' program.
127
128 The GDB distribution includes all the source code you need for GDB in
129a single directory, whose name is usually composed by appending the
130version number to `gdb'.
131
aba7b4b6 132 For example, the GDB version 5.0 distribution is in the `gdb-5.0'
c906108c
SS
133directory. That directory contains:
134
aba7b4b6 135`gdb-5.0/{COPYING,COPYING.LIB}'
c906108c
SS
136 Standard GNU license files. Please read them.
137
aba7b4b6 138`gdb-5.0/bfd'
c906108c
SS
139 source for the Binary File Descriptor library
140
aba7b4b6 141`gdb-5.0/config*'
c906108c
SS
142 script for configuring GDB, along with other support files
143
aba7b4b6 144`gdb-5.0/gdb'
c906108c
SS
145 the source specific to GDB itself
146
aba7b4b6 147`gdb-5.0/include'
c906108c
SS
148 GNU include files
149
aba7b4b6 150`gdb-5.0/libiberty'
c906108c
SS
151 source for the `-liberty' free software library
152
aba7b4b6 153`gdb-5.0/mmalloc'
c906108c
SS
154 source for the GNU memory-mapped malloc package
155
aba7b4b6 156`gdb-5.0/opcodes'
c906108c
SS
157 source for the library of opcode tables and disassemblers
158
aba7b4b6 159`gdb-5.0/readline'
c906108c 160 source for the GNU command-line interface
7a292a7a
SS
161 NOTE: The readline library is compiled for use by GDB, but will
162 not be installed on your system when "make install" is issued.
c906108c 163
aba7b4b6 164`gdb-5.0/sim'
c906108c
SS
165 source for some simulators (ARM, D10V, SPARC, M32R, MIPS, PPC, V850, etc)
166
aba7b4b6 167`gdb-5.0/intl'
c906108c
SS
168 source for the GNU gettext library, for internationalization.
169 This is slightly modified from the standalone gettext
170 distribution you can get from GNU.
171
aba7b4b6 172`gdb-5.0/texinfo'
c906108c
SS
173 The `texinfo.tex' file, which you need in order to make a printed
174 manual using TeX.
175
aba7b4b6 176`gdb-5.0/etc'
c906108c
SS
177 Coding standards, useful files for editing GDB, and other
178 miscellanea.
179
aba7b4b6 180`gdb-5.0/utils'
c906108c
SS
181 A grab bag of random utilities.
182
c63ce875
EZ
183 Note: the following instructions are for building GDB on Unix or
184Unix-like systems. Instructions for building with DJGPP for
185MS-DOS/MS-Windows are in the file gdb/config/djgpp/README.
c906108c
SS
186
187 The simplest way to configure and build GDB is to run `configure'
188from the `gdb-VERSION-NUMBER' source directory, which in this example
aba7b4b6 189is the `gdb-5.0' directory.
c906108c
SS
190
191 First switch to the `gdb-VERSION-NUMBER' source directory if you are
192not already in it; then run `configure'.
193
194 For example:
195
aba7b4b6 196 cd gdb-5.0
c906108c
SS
197 ./configure
198 make
199
200 Running `configure' followed by `make' builds the `bfd',
201`readline', `mmalloc', and `libiberty' libraries, then `gdb' itself.
202The configured source files, and the binaries, are left in the
203corresponding source directories.
204
205 `configure' is a Bourne-shell (`/bin/sh') script; if your system
206does not recognize this automatically when you run a different shell,
207you may need to run `sh' on it explicitly:
208
209 sh configure
210
211 If you run `configure' from a directory that contains source
aba7b4b6
AC
212directories for multiple libraries or programs, such as the `gdb-5.0'
213source directory for version 5.0, `configure' creates configuration
c906108c
SS
214files for every directory level underneath (unless you tell it not to,
215with the `--norecursion' option).
216
217 You can run the `configure' script from any of the subordinate
218directories in the GDB distribution, if you only want to configure that
219subdirectory; but be sure to specify a path to it.
220
aba7b4b6 221 For example, with version 5.0, type the following to configure only
c906108c
SS
222the `bfd' subdirectory:
223
aba7b4b6 224 cd gdb-5.0/bfd
c906108c
SS
225 ../configure
226
227 You can install `gdb' anywhere; it has no hardwired paths. However,
228you should make sure that the shell on your path (named by the `SHELL'
229environment variable) is publicly readable. Remember that GDB uses the
230shell to start your program--some systems refuse to let GDB debug child
231processes whose programs are not readable.
232
233
234Compiling GDB in another directory
235==================================
236
237 If you want to run GDB versions for several host or target machines,
238you need a different `gdb' compiled for each combination of host and
239target. `configure' is designed to make this easy by allowing you to
240generate each configuration in a separate subdirectory, rather than in
241the source directory. If your `make' program handles the `VPATH'
242feature correctly (GNU `make' and SunOS 'make' are two that should),
243running `make' in each of these directories builds the `gdb' program
244specified there.
245
246 To build `gdb' in a separate directory, run `configure' with the
247`--srcdir' option to specify where to find the source. (You also need
248to specify a path to find `configure' itself from your working
249directory. If the path to `configure' would be the same as the
250argument to `--srcdir', you can leave out the `--srcdir' option; it
251will be assumed.)
252
aba7b4b6 253 For example, with version 5.0, you can build GDB in a separate
c906108c
SS
254directory for a Sun 4 like this:
255
aba7b4b6 256 cd gdb-5.0
c906108c
SS
257 mkdir ../gdb-sun4
258 cd ../gdb-sun4
aba7b4b6 259 ../gdb-5.0/configure
c906108c
SS
260 make
261
262 When `configure' builds a configuration using a remote source
263directory, it creates a tree for the binaries with the same structure
264(and using the same names) as the tree under the source directory. In
265the example, you'd find the Sun 4 library `libiberty.a' in the
266directory `gdb-sun4/libiberty', and GDB itself in `gdb-sun4/gdb'.
267
268 One popular reason to build several GDB configurations in separate
269directories is to configure GDB for cross-compiling (where GDB runs on
270one machine--the host--while debugging programs that run on another
271machine--the target). You specify a cross-debugging target by giving
272the `--target=TARGET' option to `configure'.
273
274 When you run `make' to build a program or library, you must run it
275in a configured directory--whatever directory you were in when you
276called `configure' (or one of its subdirectories).
277
278 The `Makefile' that `configure' generates in each source directory
279also runs recursively. If you type `make' in a source directory such
aba7b4b6
AC
280as `gdb-5.0' (or in a separate configured directory configured with
281`--srcdir=PATH/gdb-5.0'), you will build all the required libraries,
c906108c
SS
282and then build GDB.
283
284 When you have multiple hosts or targets configured in separate
285directories, you can run `make' on them in parallel (for example, if
286they are NFS-mounted on each of the hosts); they will not interfere
287with each other.
288
289
290Specifying names for hosts and targets
291======================================
292
293 The specifications used for hosts and targets in the `configure'
294script are based on a three-part naming scheme, but some short
295predefined aliases are also supported. The full naming scheme encodes
296three pieces of information in the following pattern:
297
298 ARCHITECTURE-VENDOR-OS
299
300 For example, you can use the alias `sun4' as a HOST argument or in a
301`--target=TARGET' option. The equivalent full name is
302`sparc-sun-sunos4'.
303
304 The `configure' script accompanying GDB does not provide any query
305facility to list all supported host and target names or aliases.
306`configure' calls the Bourne shell script `config.sub' to map
307abbreviations to full names; you can read the script, if you wish, or
308you can use it to test your guesses on abbreviations--for example:
309
310 % sh config.sub sun4
311 sparc-sun-sunos4.1.1
312 % sh config.sub sun3
313 m68k-sun-sunos4.1.1
314 % sh config.sub decstation
315 mips-dec-ultrix4.2
316 % sh config.sub hp300bsd
317 m68k-hp-bsd
318 % sh config.sub i386v
319 i386-pc-sysv
320 % sh config.sub i786v
321 Invalid configuration `i786v': machine `i786v' not recognized
322
323`config.sub' is also distributed in the GDB source directory
aba7b4b6 324(`gdb-5.0', for version 5.0).
c906108c
SS
325
326
327`configure' options
328===================
329
330 Here is a summary of the `configure' options and arguments that are
331most often useful for building GDB. `configure' also has several other
332options not listed here. *note : (configure.info)What Configure Does,
333for a full explanation of `configure'.
334
335 configure [--help]
336 [--prefix=DIR]
337 [--srcdir=PATH]
338 [--norecursion] [--rm]
339 [--enable-build-warnings]
340 [--target=TARGET]
341 [--host=HOST]
342 [HOST]
343
344You may introduce options with a single `-' rather than `--' if you
345prefer; but you may abbreviate option names if you use `--'.
346
347`--help'
348 Display a quick summary of how to invoke `configure'.
349
350`-prefix=DIR'
351 Configure the source to install programs and files under directory
352 `DIR'.
353
354`--srcdir=PATH'
355 *Warning: using this option requires GNU `make', or another `make'
356 that compatibly implements the `VPATH' feature.*
357 Use this option to make configurations in directories separate
358 from the GDB source directories. Among other things, you can use
359 this to build (or maintain) several configurations simultaneously,
360 in separate directories. `configure' writes configuration
361 specific files in the current directory, but arranges for them to
362 use the source in the directory PATH. `configure' will create
363 directories under the working directory in parallel to the source
364 directories below PATH.
365
366`--norecursion'
367 Configure only the directory level where `configure' is executed;
368 do not propagate configuration to subdirectories.
369
370`--rm'
371 Remove the configuration that the other arguments specify.
372
373`--enable-build-warnings'
374 When building the GDB sources, ask the compiler to warn about any
375 code which looks even vaguely suspicious. You should only using
376 this feature if you're compiling with GNU CC. It passes the
377 following flags:
aba7b4b6
AC
378 -Wimplicit
379 -Wreturn-type
380 -Wcomment
381 -Wtrigraphs
382 -Wformat
383 -Wparentheses
c906108c 384 -Wpointer-arith
c906108c
SS
385
386`--target=TARGET'
387 Configure GDB for cross-debugging programs running on the specified
388 TARGET. Without this option, GDB is configured to debug programs
389 that run on the same machine (HOST) as GDB itself.
390
391 There is no convenient way to generate a list of all available
392 targets.
393
394`--host=HOST'
395 Configure GDB to run on the specified HOST.
396
397 There is no convenient way to generate a list of all available
398 hosts.
399
400`HOST ...'
401 Same as `--host=HOST'. If you omit this, GDB will guess; it's
402 quite accurate.
403
404`configure' accepts other options, for compatibility with configuring
405other GNU tools recursively; but these are the only options that affect
406GDB or its supporting libraries.
407
408
409Languages other than C
410=======================
411
412See the GDB manual (gdb/doc/gdb.texinfo) for information on this.
413
414
415Kernel debugging
416=================
417
aba7b4b6
AC
418 I have't done this myself so I can't really offer any advice.
419Remote debugging over serial lines works fine, but the kernel
420debugging code in here has not been tested in years. Van Jacobson has
c906108c
SS
421better kernel debugging, but the UC lawyers won't let FSF have it.
422
423
424Remote debugging
425=================
426
aba7b4b6
AC
427 The files m68k-stub.c, i386-stub.c, and sparc-stub.c are examples
428of remote stubs to be used with remote.c. They are designed to run
429standalone on an m68k, i386, or SPARC cpu and communicate properly
430with the remote.c stub over a serial line.
c906108c 431
aba7b4b6 432 The directory gdb/gdbserver/ contains `gdbserver', a program that
c906108c 433allows remote debugging for Unix applications. gdbserver is only
aba7b4b6
AC
434supported for some native configurations, including Sun 3, Sun 4, and
435Linux.
c906108c 436
aba7b4b6 437 There are a number of remote interfaces for talking to existing ROM
c906108c
SS
438monitors and other hardware:
439
440 remote-adapt.c AMD 29000 "Adapt"
441 remote-array.c Array Tech RAID controller
442 remote-bug.c Motorola BUG monitor
c906108c
SS
443 remote-e7000.c Hitachi E7000 ICE
444 remote-eb.c AMD 29000 "EBMON"
445 remote-es.c Ericsson 1800 monitor
446 remote-est.c EST emulator
447 remote-hms.c Hitachi Micro Systems H8/300 monitor
448 remote-mips.c MIPS remote debugging protocol
449 remote-mm.c AMD 29000 "minimon"
450 remote-nindy.c Intel 960 "Nindy"
451 remote-nrom.c NetROM ROM emulator
452 remote-os9k.c PC running OS/9000
453 remote-rdi.c ARM with Angel monitor
454 remote-rdp.c ARM with Demon monitor
455 remote-sds.c PowerPC SDS monitor
456 remote-sim.c Generalized simulator protocol
457 remote-st.c Tandem ST-2000 monitor
458 remote-udi.c AMD 29000 using the AMD "Universal Debug Interface"
459 remote-vx.c VxWorks realtime kernel
460
aba7b4b6
AC
461 Remote-vx.c and the vx-share subdirectory contain a remote
462interface for the VxWorks realtime kernel, which communicates over TCP
463using the Sun RPC library. This would be a useful starting point for
464other remote- via-ethernet back ends.
c906108c 465
aba7b4b6
AC
466 Remote-udi.c and the 29k-share subdirectory contain a remote
467interface for AMD 29000 programs, which uses the AMD "Universal Debug
468Interface". This allows GDB to talk to software simulators,
469emulators, and/or bare hardware boards, via network or serial
470interfaces. Note that GDB only provides an interface that speaks UDI,
471not a complete solution. You will need something on the other end
472that also speaks UDI.
c906108c
SS
473
474
475Reporting Bugs
476===============
477
aba7b4b6
AC
478 The correct address for reporting bugs found in gdb is
479"bug-gdb@gnu.org". Please email all bugs, and all requests for help
480with GDB, to that address. Please include the GDB version number
481(e.g., gdb-5.0), and how you configured it (e.g., "sun4" or "mach386
c906108c 482host, i586-intel-synopsys target"). Since GDB now supports so many
aba7b4b6
AC
483different configurations, it is important that you be precise about
484this. If at all possible, you should include the actual banner that
485GDB prints when it starts up, or failing that, the actual configure
486command that you used when configuring GDB.
c906108c 487
aba7b4b6
AC
488 For more information on how/whether to report bugs, see the GDB
489Bugs section of the GDB manual (gdb/doc/gdb.texinfo) or the
490gdb/CONTRIBUTE file.
c906108c
SS
491
492Known bugs:
493
494 * Under Ultrix 4.2 (DECstation-3100) or Alphas under OSF/1, we have
495 seen problems with backtraces after interrupting the inferior out
496 of a read(). The problem is caused by ptrace() returning an
497 incorrect value for the frame pointer register (register 15 or
498 30). As far as we can tell, this is a kernel problem. Any help
499 with this would be greatly appreciated.
500
501 * Under Ultrix 4.4 (DECstation-3100), setting the TERMCAP environment
502 variable to a string without a trailing ':' can cause GDB to dump
503 core upon startup. Although the core file makes it look as though
504 GDB code failed, the crash actually occurs within a call to the
505 termcap library function tgetent(). The problem can be solved by
506 using the GNU Termcap library.
507
508 Alphas running OSF/1 (versions 1.0 through 2.1) have the same buggy
509 termcap code, but GDB behaves strangely rather than crashing.
510
511 * On DECstations there are warnings about shift counts out of range in
512 various BFD modules. None of them is a cause for alarm, they are actually
513 a result of bugs in the DECstation compiler.
514
515 * Notes for the DEC Alpha using OSF/1:
516 The debugging output of native cc has two known problems; we view these
517 as compiler bugs.
518 The linker miscompacts symbol tables, which causes gdb to confuse the
519 type of variables or results in `struct <illegal>' type outputs.
520 dbx has the same problems with those executables. A workaround is to
521 specify -Wl,-b when linking, but that will increase the executable size
522 considerably.
523 If a structure has incomplete type in one file (e.g., "struct foo *"
524 without a definition for "struct foo"), gdb will be unable to find the
525 structure definition from another file.
526 It has been reported that the Ultrix 4.3A compiler on decstations has the
527 same problems.
528
529 * Notes for Solaris 2.x, using the SPARCworks cc compiler:
530 You have to compile your program with the -xs option of the SPARCworks
531 compiler to be able to debug your program with gdb.
532 Under Solaris 2.3 you also need patch 101409-03 (Jumbo linker patch).
533 Under Solaris 2.2, if you have patch 101052 installed, make sure
534 that it is at least at revision 101052-06.
535
536 * Under Irix 5 for SGIs, you must have installed the `compiler_dev.hdr'
537 subsystem that is on the IDO CD, otherwise you will get complaints
538 that certain files such as `/usr/include/syms.h' cannot be found.
539
aba7b4b6
AC
540 * Under Irix 6 you must build with GCC. The vendor compiler reports
541 as errors certain assignments that GCC considers to be warnings.
542
543 GDB can produce warnings about symbols that it does not understand.
544By default, these warnings are disabled. You can enable them by
545executing `set complaint 10' (which you can put in your ~/.gdbinit if
546you like). I recommend doing this if you are working on a compiler,
547assembler, linker, or GDB, since it will point out problems that you
548may be able to fix. Warnings produced during symbol reading indicate
549some mismatch between the object file and GDB's symbol reading code.
550In many cases, it's a mismatch between the specs for the object file
551format, and what the compiler actually outputs or the debugger
552actually understands.
553
554
555Graphical interface to GDB -- X Windows, MS Windows
556==========================
c906108c 557
aba7b4b6
AC
558 Several graphical interfaces to GDB are available. You should
559check:
c906108c 560
aba7b4b6 561 http://sourceware.cygnus.com/gdb/#gui
c906108c 562
aba7b4b6 563for an up-to-date list.
c906108c 564
aba7b4b6
AC
565 Emacs users will very likely enjoy the Grand Unified Debugger mode;
566try typing `M-x gdb RET'. Those interested in experimenting with a
567new kind of gdb-mode should load gdb/gdba.el into GNU Emacs 19.25 or
568later. Comments on this mode are also welcome.
c906108c
SS
569
570
571Writing Code for GDB
572=====================
573
aba7b4b6 574 There is a lot of information about writing code for GDB in the
c906108c
SS
575internals manual, distributed with GDB in gdb/doc/gdbint.texinfo. You
576can read it by hand, print it by using TeX and texinfo, or process it
577into an `info' file for use with Emacs' info mode or the standalone
578`info' program.
579
aba7b4b6 580 If you are pondering writing anything but a short patch, especially
c906108c
SS
581take note of the information about copyrights in the node Submitting
582Patches. It can take quite a while to get all the paperwork done, so
583we encourage you to start that process as soon as you decide you are
584planning to work on something, or at least well ahead of when you
585think you will be ready to submit the patches.
586
587
588GDB Testsuite
589=============
590
aba7b4b6
AC
591 Included with the GDB distribution is a DejaGNU based testsuite
592that can either be used to test your newly built GDB, or for
593regression testing a GDB with local modifications.
594
595 Running the testsuite requires the prior installation of DejaGNU,
596which is generally available via ftp. The directory
597ftp://sourceware.cygnus.com/pub/dejagnu/ will contain a recent
598snapshot. Once DejaGNU is installed, you can run the tests in one of
599the following ways:
c906108c 600
aba7b4b6
AC
601 (1) cd gdb-5.0
602 make check-gdb
603
604or
c906108c 605
aba7b4b6 606 (2) cd gdb-5.0/gdb
c906108c
SS
607 make check
608
609or
610
aba7b4b6 611 (3) cd gdb-5.0/gdb/testsuite
c906108c
SS
612 make site.exp (builds the site specific file)
613 runtest -tool gdb GDB=../gdb (or GDB=<somepath> as appropriate)
614
aba7b4b6
AC
615The last method gives you slightly more control in case of problems
616with building one or more test executables or if you are using the
617testsuite `standalone', without it being part of the GDB source tree.
c906108c
SS
618
619See the DejaGNU documentation for further details.
620
621\f
622(this is for editing this file with GNU emacs)
623Local Variables:
624mode: text
625End:
This page took 0.074533 seconds and 4 git commands to generate.