Debugging with GDB (September 2007)

214 Debugging with GDB
lr string lr string (with -xdb), info reg
string
List matching registers
ls [string] No equivalent List all (or matching) special vari-
ables
mm info sharedlibrary Show memory map of all loaded
shared libraries
mm string No equivalent Show memory map of matching
loaded shared libraries
p expr[\format p[/format expr [Note: The count
and size portions of formats are
not allowed in the p (print) com-
mand. They are allowed in the x
command (examine memory).]
Print value using the specified for-
mat
p expr?format p/format &expr Print address using specified for-
mat
p class:: No equivalent Print static members of class
p $lang show language Inquire what language is used
p {+ | -}[\format Use x/format command to obtain
initial value, then use x with no
argument to obtain value of next
memory location. To obtain value
of previous memory location, use
"x $_ - 1".
Print value of next/previous mem-
ory location using format
pq expr set expr, set var expr Evaluate using the specified for-
mat
pq expr?format No equivalent Determine address using specified
format
pq class:: No equivalent Evaluate static members of class