Logo next up previous index
Next: 5. Library ports Up: cross under linux Previous: 3. Using the Netware   Index

Subsections


4. Debugging


4.1 Debugging with gdbserve.nlm

There is some rather limited debugging functionality available by using a serial cable between the Netware box and the Linux host.

On the Netware box you need to run a compiler stub called gdbserve.nlm. It will start the program to be compiled and open the serial port. On the Linux host you will run i386-netware-gdb and tell it to use the serial line to access the compilation target. However there are certain problems with gdbserve.nlm:

4.1.1 Preparing the program

The NLM on the Netware box does not need to include debug infos. Only the copy of the NLM used on the Linux box for debugging needs to include debug infos. Removing debug infos from an already created NLM with i386-netware-strip seems to result in a a broken NLM. Use the -s linker switch as a workaround if you need a stripped binary.

4.1.2 Preparing the Netware box

4.1.3 Using gdb


4.2 Using gdb2ndi

There is an alternative approach to debugging on Netware by Armin Diehl: http://home.arcor.de/armin.diehl/fpcnw/gdbnw.html . I have not tried that yet. The main advantage seems to be that it works with TCP/IP.


4.3 The Netware integrated debugger

http://developer.novell.com/ndk/doc/clib/index.html?page=/ndk/doc/clib/ndev_enu/data/hqelnt4z.html

There is also some parameter to server.exe that enables development features, no idea what that is good for yet.


next up previous index
Next: 5. Library ports Up: cross under linux Previous: 3. Using the Netware   Index
Herd Software Development, 28. March 2003, http://www.herdsoft.com/