Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)

-quiet, -silent, -q “Quiet. Do not print the introductory and copyright messages.
These messages are also suppressed in batch mode.
-batch Run in batch mode. Exit with status 0 after processing all the
command files specified with '-x' (and all commands from
initialization files, if not inhibited with '-n'). Exit with nonzero status
if an error occurs in executing the GDB commands in the command
files.
Batch mode may be useful for running GDB as a filter, for example
to download and run a program on another computer; in order to
make this more useful, the message
Program exited normally.
(which is ordinarily issued whenever a program running under GDB
control terminates) is not issued when running in batch mode.
-nowindows, -nw “No windows. If GDB comes with a graphical user interface (GUI)
built in, then this option tells GDB to only use the command-line
interface. If no GUI is available, this option has no effect.
-windows, -w If GDB includes a GUI, then this option requires it to be used if
possible.
-cd directory Run GDB using directory as its working directory, instead of the
current directory.
-dbx Support additional dbx commands, including:
use
status (in dbx mode, status has a different meaning than in
default GDB mode.)
whereis
func
file
assign
call
stop
-fullname, -f GNU Emacs sets this option when it runs GDB as a subprocess. It
tells GDB to output the full file name and line number in a standard,
recognizable fashion each time a stack frame is displayed (which
includes each time your program stops). This recognizable format
looks like two `\032' characters, followed by the file name, line
number, and character position separated by colons, and a newline.
The Emacs-to-GDB interface program uses the two '\032' characters
as a signal to display the source code for the frame.
-epoch The Epoch Emacs-GDB interface sets this option when it runs GDB
as a subprocess. It tells GDB to modify its print routines so as to
allow Epoch to display values of expressions in a separate window.
-annotate level This option sets the annotation level inside GDB. Its effect is identical
to using `set annotate level' (see “GDB Annotations”
(page 235)). Annotation level controls how much information does
GDB print together with its prompt, values of expressions, source
lines, and other types of output. Level 0 is the normal, level 1 is for
use when GDB is run as a subprocess of GNU Emacs, level 2 is the
maximum annotation suitable for programs that control GDB.
2.1 Invoking GDB 23