* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
[deliverable/binutils-gdb.git] / gdb / nlm / README-ALPHA-NETWARE
CommitLineData
27847c6f
SG
1This is a preliminary release of GDB and GDBSERVE.NLM for Alpha/Netware.
2
3Building this release is very straightforward. You just need to do the
4following:
5
6 1) Unpack the release. gunzip < gdb-4.12.3.tar.gz | tar xvf -
7 should do the trick.
8 2) cd gdb-4.12.3
9 3) ./configure --target alpha-netware
10 4) make BISON=yacc [You can use either gcc, or the DEC compiler here].
11
12Building GDBSERVE.NLM:
13
14 1) cd gdb-4.12.3/gdb/nlm
15 2) Edit Makefile, and change the value to NWAXPDEV to point at the
16 DEC development kit.
17 3) make
18
19To debug a program, you need to install GDBSERVE.NLM on your server in
20[SYSTEM] (or, anywhere in your search path). Then, connect your netware
21server to the host with a null modem cable. Start up the app you want to
22debug by doing `gdbserve 0 0 APPNAME APP-ARGS ...'. At this point, the
23server will be stopped inside of GDBSERVE, waiting for debugger commands
24from the serial line. Now, you run GDB on a copy of the app .o file,
25and do a target command to connect to the server. `gdb foo.o', then
26(gdb) target remote /dev/tty00. Note that foo.o should not be the NLM.
27It should be the file that is input to alphanlm or nlmconv.
28
29At this point, GDB should be paused at the first instruction of the program
30(that's probably _Prelude). You can put a breakpoint at main, and then do
31a continue command to debug your program. At that point, normal step/next
32commands, backtrace, etc should work.
33
34Known problems:
35
36Sometimes you will see messages like the following:
37 warning: Hit heuristic-fence-post without finding
38 warning: enclosing function for address 0x1112f1f0
39These can be ignored. They are usually associated with stepping over
40external functions (like printf).
41
42Function calling (ie: print foo(42)) is very slow. A fix for this is in
43the works.
44
45Due to last minute problems with GAS, I was not able to build GDBSERVE.NLM
46with our tools, and I was unable to test code compiled with our tools. This
47should not be a problem, as GDB will quite happily debug programs compiled
48with either GCC, or the DEC tools. For the time being, GDBSERVE will be
49compiled with the DEC tools.
50
51We can't build prelude.o because the DEC dev kit didn't supply libhooks.h.
52For the time being, I have just copied prelude.o from the DEC dev kit into
53the GDB kit.
54
55In case of problems:
56
57If GDB hangs when talking to the target, try turning on remote debugging
58(you can use ^C to wake up GDB if necessary). To do this, just type
59`set remotedebug 1'. This will print out the protocol packets whenever
60GDB and GDBSERVE talk to each other.
This page took 0.052654 seconds and 4 git commands to generate.