Debugging with GDB

The GNU Source-Level Debugger

Eighth Edition, for GDB version 5.0

March 2000

Richard Stallman, Roland Pesch, Stan Shebs,


GDB built with DJGPP tools for MS-DOS/MS-Windows supports this mode of operation, but the event loop is suspended when the debuggee runs.


`b' cannot be used because these format letters are also used with the x command, where `b' stands for "byte"; see section Examining memory.


This is a way of removing one word from the stack, on machines where stacks grow downward in memory (most machines, nowadays). This assumes that the innermost stack frame is selected; setting $sp is not allowed when other stack frames are selected. To pop entire frames off the stack, regardless of machine architecture, use return; see section Returning from a function.


If a procedure call is used for instance in an expression, then this procedure is called with all its side effects. This can lead to confusing results if used carelessly.


If you choose a port number that conflicts with another service, gdbserver prints an error message and exits.


On DOS/Windows systems, the home directory is the one pointed to by the HOME environment variable.


In `gdb-5.0/gdb/' of the version 5.0 release.


If you have a more recent version of GDB than 5.0, look at the `README' file in the sources; we may have improved the installation procedures since publishing this manual.

This document was generated on 12 September 2000 using texi2html 1.56k.