“Assertion control commands”

“Record and playback commands”

“Macro facility commands”

“Signal control commands”

“Miscellaneous commands”

16.1.1Invocation commands

By default, HP WDB runs in line mode. To run it with a terminal user interface similar to that of XDB, use the -tuioption.

The following table lists the XDB and the equivalent WDB commands for invoking the terminal user interface:

Table 16-1 Invocation commands

XDB Command

WDB Equivalent

Meaning

xdb program

gdb -xdb program, gdb -xdb

Debug program

 

-tuiprogram

 

xdb program corefile

gdb -xdbprogram -c

Debug core file

 

corefile

 

xdb -d dir

gdb -xdb -d dir

Specify alternate directory to

 

 

search for source files

xdb -Ppid program

gdb -xdbprogram pid

Attach to running pro- gram at

 

 

invocation

xdb -i

(after starting) run < file

Specify input to target program

xdb -o

(after starting) run > file

Specify output from target

 

 

program

16.1.2 Window mode commands

The following commands are TUI mode or XDB compatibility mode commands. They are available when you invoke WDB by using the -tuior -xdbor both options.

Table 16-2 Window mode commands

XDB Command

WDB Equivalent

Meaning

{+ -}r

{+ -}r (with -xdb

Scroll floating-point registers

 

-tui), {+ -} data (with

forward or backward (src, cmd,

 

-tui), gdb -xdb -tui

and asm are also valid window

 

program

names)

fr

fr (with -xdb -tui),

Display floating-point registers

 

display $fregs (with

 

 

-tui)

 

254 XDB to WDB Transition Guide

Page 254
Image 254
HP gnu source-level debugger 5992-4701 manual Invocation commands, Window mode commands