Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
14.33 Support for ddd
GDB works with ddd, the free GDB GUI shell available at http://mumm.ibr.cs.tu-bs.de/.
While this is not formally supported by Hewlett-Packard, these two do work together.
Note however if you have ddd issues, you'll need to report them to the ddd support
channel.
14.34 Support for XDB commands
HP WDB provides support for a subset of XDB commands, enabled with the -xdb option.
14.34.1 stop in/at dbx commands
The commands <stop in function/address> and <stop at line> are
equivalent of dbx <break function/address /line> command. HP WDB supports
the <stop in/at> command in non-dbx mode.
For example:
$ gdb a.out (gdb) stop in main Breakpoint 1 at 0x2a34: file list.c, line 18
from /tmp/a.out (gdb) stop at 25 Breakpoint 2 at 0x2a6c: file list.c, line
25 from /tmp/a.out (gdb)
14.35 GDB Logging Commands
The following commands control GDB logging activities:
set logging file: Set the current log-file.
set logging off: Set logging off
set logging on: Set logging on
set logging overwrite[on|off]: Set whether logging overwrites or appends
to the log-file.
set logging redirect [on|off]: Set the logging output mode.
Or use following set of commands.
set redirect [on|off]: Enable or disable logging.
set redirect-file filename: Set the current log-file.
set redirect-mode overwrite|append: Set whether logging overwrites or
appends to the log-file.
To display the current logging/redirection settings:
show logging: Display all current logging settings.
show logging file: Display currently set log-file.
show logging overwrite: Display whether logging overwrites or appends to
the log-file.
240 HP-UX Configuration-Specific Information