beautypg.com

1 invocation commands, 2 window mode commands, 1 invocation commands 16.1.2 window mode commands – HP gnu source-level debugger 5992-4701 User Manual

Page 254: Invocation commands, Window mode commands

background image

“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 WDB commands for invoking the
terminal user interface:

Table 16-1 Invocation commands

Meaning

WDB Equivalent

XDB Command

Debug program

gdb -xdb program

, gdb -xdb

-tui program

xdb program

Debug core file

gdb -xdb program -c
corefile

xdb program corefile

Specify alternate directory to
search for source files

gdb -xdb -d dir

xdb -d dir

Attach to running pro- gram at
invocation

gdb -xdb program pid

xdb -P pid program

Specify input to target program

(after starting) run < file

xdb -i

Specify output from target
program

(after starting) run > file

xdb -o

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 -tui or -xdb or both options.

Table 16-2 Window mode commands

Meaning

WDB Equivalent

XDB Command

Scroll floating-point registers
forward or backward (src, cmd,
and asm are also valid window
names)

{+ | -}r (with -xdb
-tui), {+ | -} data (with
-tui)

, gdb -xdb -tui

program

{+ | -}r

Display floating-point registers

fr (with -xdb -tui),
display $fregs (with
-tui)

fr

254

XDB to WDB Transition Guide