6 xdb special variables and hp wdb equivalents, Special language operators, Special variables – HP gnu source-level debugger 5992-4701 User Manual
Page 269: Table 16-18 special language operators

Table 16-18 Special language operators
Meaning
WDB Equivalent
XDB Language Operator
Unary operator, address of object
Depends on language
$addr
Unary Boolean operator, execution
in procedure
No equivalent
$in
Unary operator, size of object
sizeof
$sizeof
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
Meaning
WDB Equivalent
XDB Special Variable
C++ feature control flags
No equivalent
$cplusplus
Default stack depth for local
variables
No equivalent
$depth
Treat FPA sequence as one
instruction
No equivalent
$fpa
Address register for FPA
sequences
No equivalent
$fpa_reg
Current language for expression
evaluation
show language
$lang
Current source line number
No equivalent
$line
Debugger memory allocation
(bytes)
No equivalent
$malloc
Display mode for character data
No equivalent
Hardware registers
$regname
$regname
Return value of last command line
procedure call
Use $n (value history number
assigned to the desired result)
$result
Current child procedure signal
number
No equivalent
$signal
Number of instructions debugger
will step in non-debuggable
procedures before free-running
No equivalent
$step
Dene or use special variable
(convenience variable)
$var
$var
16.6 XDB special variables and HP WDB equivalents
269