Debugging with GDB

The GNU Source-Level Debugger

Ninth Edition, for GDB version 6.2-m68hc1x-2004-08-01

Richard Stallman, Roland Pesch, Stan Shebs, et al.


(1)

The only restriction is that your editor (say ex), recognizes the following command-line syntax:

ex +number file

The optional numeric value +number designates the active line in the file.

(2)

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

(3)

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.

(4)

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

(5)

The DJGPP port of GDB uses the name `gdb.ini' instead, due to the limitations of file names imposed by DOS filesystems.

(6)

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

(7)

In `gdb-6.2-m68hc1x-2004-08-01/gdb/refcard.ps' of the version 6.2-m68hc1x-2004-08-01 release.

(8)

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


This document was generated on 15 May 2005 using texi2html 1.56k.