Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
Table 20 Special language operators
MeaningHP WDB EquivalentXDB Language Operator
Unary operator, address of objectDepends on language$addr
Unary Boolean operator, execution in
procedure
No equivalent$in
Unary operator, size of objectsizeof$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 21 Special variables
MeaningHP WDB EquivalentXDB Special Variable
C++ feature control flagsNo equivalent$cplusplus
Default stack depth for local variablesNo equivalent$depth
Treat FPA sequence as one instructionNo equivalent$fpa
Address register for FPA sequencesNo equivalent$fpa_reg
Current language for expression
evaluation
show language$lang
Current source line numberNo equivalent$line
Debugger memory allocation (bytes)No equivalent$malloc
Display mode for character dataNo equivalent$print
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 numberNo 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.7 XDB variable identifiers and HP WDB equivalents
Table 22 Variable Identifiers
MeaningHP WDB EquivalentXDB Variable Identifier
Search for varvarvar
Search class for var (bug: not yet)class::class::
Search proc for var (static variables
only)
proc::var[[class]::]proc:[class::]var
Search proc for depth on stackNo equivalent[[class]::]proc:depth:[class::]
16.6 XDB special variables and HP WDB equivalents 215