aboutsummaryrefslogtreecommitdiff
path: root/gdb/README
blob: 6e985de1572917c9391009363e295f5a30f1cd6b (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
This is GDB, a source-level debugger intended for GNU,
presently running under un*x.

Before compiling GDB, you must set three files according to
the kind of machine you are running on.

param.h must be set up to #include an m- file for the machine.
The m- files written so far are m-vax.h, m-sun2.h and m-sun3.h.
(I believe that it is the operating system version and not
the cpu type which determines which of the two is right on a Sun.)
This file contains macro definitions that express information
about the machine's registers, stack frame format and instructions.

initialize.h must be set up to #include an m-...init.h file.
There are two of them written: m-vaxinit.h and m-suninit.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.

pinsn.c must be set up to include the instruction printer for
your cpu type.  The two printers that exist are vax-pinsn.c
and m68k-pinsn.c.

`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.