Mac OS X Reference Library Apple Developer Connection spyglass button

Debugging with GDB

The GNU Source-Level Debugger

Ninth Edition, for GDB version 6.3.50.20050815-cvs

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


(1)

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

(2)

Note that embedded programs (the so-called "free-standing" environment) are not required to have a main function as the entry point. They could even have multiple entry points.

(3)

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

ex +number file

The optional numeric value +number specifies the number of the line in the file where to start editing.

(4)

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

(5)

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.

(6)

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

(7)

In `gdb-6.3.50.20050815-cvs/gdb/refcard.ps' of the version 6.3.50.20050815-cvs release.

(8)

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


This document was generated on 18 May 2008 using the texi2html translator version 1.51.

Did this document help you? Yes It's good, but... Not helpful...