Table 16-15 Miscellaneous commands (continued)

XDB Command

WDB Equivalent

Meaning

! cmd line

! cmd line (with -xdb), she

Invoke a shell

 

cmd line

 

{cmd list}

commands [number] ... end

Execute command list (group

 

 

commands)

Control-C

Control-C

Interrupt the program

# [text]

# [text]

A comment

am

am (with -xdb),set height

Activate more (turn on pagination)

 

num

 

f ["printf-style- fmt"]

No equivalent

Set address printing format

h

h

Help

M[{t c} [expr[;

No equivalent

Print object or corefile map

expr...]]]

 

 

q

q

Quit debugger

sm

sm (with -xdb),set height 0

Suspend more (turn o pagination)

ss file

No equivalent

Save (breakpoint, macro, assertion)

 

 

state

tc

No equivalent

Toggle case sensitivity in searches

16.3 XDB data formats and HP WDB equivalents

The format of the print command is different in XDB and GDB:

XDB: p expr\fmt

GDB: p/fmt expr

Use the set print pretty command to obtain a structured display similar to the default XDB display.

The following table lists the XDB and equivalent WDB commands for setting data display formats:

Table 16-16 Data format commands

XDB Command

WDB Equivalent

Meaning

b

d

Byte in decimal

B (1)

d

Byte in decimal

c

c

Character

C (1)

c

Wide character

266 XDB to WDB Transition Guide

Page 266
Image 266
HP gnu source-level debugger 5992-4701 manual XDB data formats and HP WDB equivalents, Data format commands