Debugging with GDB (September 2007)

228 Debugging with GDB
16.6 XDB special variables and HP WDB equivalents
GDB does not provide special variables of the kind that XDB has, but you c an use show
and set to display and modify many debugger settings.
XDB Special Variable WDB Equivalent Meaning
$cplusplus No equivalent C++ feature control flags
$depth No equivalent Default stack depth for local vari-
ables
$fpa No equivalent Treat FPA sequence as one in-
struction
$fpa_reg No equivalent Address register for FPA se-
quences
$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
numb e r assigned to the
desired result)
Return value of last command line
procedure call
$signal No equivalent Current child procedure signal
numb e r