aboutsummaryrefslogtreecommitdiff
path: root/gdb/README
blob: 095136b91135258a64caf1e2e5352ba5ae3265eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This is GDB, a source-level debugger intended for GNU,
presently running under un*x.

Before compiling GDB, you must set up links to four files according to
the kind of machine you are running on.  To do this, type `config.gdb
machine', where machine is something like `vax' or `sun2'.  This
creates links named `param.h', `m-init.h', `opcode.h', and `pinsn.c'.
(Note: we lack information on certain machines.)

Also, `Makefile' must be changed to say `OBSTACK = obstack.o' instead
of `OBSTACK=-lobstack' (unless you want to install obstack.o as
/lib/libobstack.a).

Once these files are set up, just `make' will do everything,
producing an executable `gdb' in this directory.

About the machine-dependent files...

m-<machine>.h

This file contains macro definitions that express information
about the machine's registers, stack frame format and instructions.

m-<machine>init.h

This file defines one macro, which says how to round up from the
address of the end of the text of one .o file to the beginning of
the text of the next .o file.

<machine>-opcode.h, <machine>-pinsn.c
These files contain the information necessary to print instructions
for your cpu type.