Table 16-18 Special language operators

XDB Language Operator

WDB Equivalent

Meaning

 

 

 

$addr

Depends on language

Unary operator, address of object

 

 

 

$in

No equivalent

Unary Boolean operator, execution

 

 

in procedure

 

 

 

$sizeof

sizeof

Unary operator, size of object

 

 

 

16.6 XDB special variables and HP WDB equivalents

GDB does not provide special variables of the kind that XDB has, but you can use show and set to display and modify many debugger settings.

Table 16-19 Special variables

XDB Special Variable

WDB Equivalent

Meaning

 

 

 

$cplusplus

No equivalent

C++ feature control flags

 

 

 

$depth

No equivalent

Default stack depth for local

 

 

variables

 

 

 

$fpa

No equivalent

Treat FPA sequence as one

 

 

instruction

 

 

 

$fpa_reg

No equivalent

Address register for FPA

 

 

sequences

 

 

 

$lang

show language

Current language for expression

 

 

evaluation

 

 

 

$line

No equivalent

Current source line number

 

 

 

$malloc

No equivalent

Debugger memory allocation

 

 

(bytes)

 

 

 

$print

No equivalent

Display mode for character data

 

 

 

$regname

$regname

Hardware registers

 

 

 

$result

Use $n (value history number

Return value of last command line

 

assigned to the desired result)

procedure call

 

 

 

$signal

No equivalent

Current child procedure signal

 

 

number

 

 

 

$step

No equivalent

Number of instructions debugger

 

 

will step in non-debuggable

 

 

procedures before free-running

 

 

 

$var

$var

Dene or use special variable

 

 

(convenience variable)

 

 

 

16.6 XDB special variables and HP WDB equivalents 269