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

Table Of Contents
“Breakpoint creation commands
“Breakpoint status commands
All-procedures breakpoint commands
“Global breakpoint commands
Assertion control commands
“Record and playback commands
“Macro facility commands
“Signal control commands
“Miscellaneous commands
16.1.1 Invocation commands
By default, HP WDB runs in line mode. To run it with a terminal user interface similar to
that of XDB, use the -tui option.
The following table lists the XDB and the equivalent HP WDB commands for invoking the
terminal user interface:
Table 3 Invocation commands
MeaningHP WDB EquivalentXDB Command
Debug programgdb -xdb program, gdb -xdb
-tui program
xdb program
Debug core filegdb -xdb program -c
corefile
xdb program corefile
Specify alternate directory to search
for source files
gdb -xdb -d dirxdb -d dir
Attach to running pro- gram at
invocation
gdb -xdb program pidxdb -P pid program
Specify input to target program(after starting) run < filexdb -i
Specify output from target program(after starting) run > filexdb -o
16.1.2 Window mode commands
The following commands are TUI mode or XDB compatibility mode commands. They are
available when you invoke HP WDB by using the -tui or -xdb or both options.
16.1 By-function lists of XDB commands and HP WDB equivalents 257