HP gnu source-level debugger 5992-4701 User Manual

Page 117

Advertising
background image

info functions regexp

Print the names and data types of all defined
functions whose names contain a match for
regular expression regexp. Thus, 'info fun
step

' finds all functions whose names include

step

; 'info fun ^step' finds those whose

names start with step.

info variables

Print the names and data types of all variables
that are declared outside of functions (that is,
excluding local variables).

info variables regexp

Print the names and data types of all variables
(except for local variables) whose names contain
a match for regular expression regexp.

Some systems allow individual object files that
make up your program to be replaced without
stopping and restarting your program. For
example, in VxWorks you can simply recompile
a defective object file and keep on running. If you
are running on one of these systems, you can
allow GDB to reload the symbols for
automatically relinked modules:

set

symbol-reloading

on

Replace symbol definitions
for the corresponding source
file when an object file with
a particular name is seen
again.

set

symbol-reloading

off

Do not replace symbol
definitions when
encountering object files of
the same name more than
once. This is the default
state; if you are not running
on a system that permits
automatic relinking of
modules, you should leave
symbol-reloading off

,

since otherwise GDB may
discard symbols when
linking large programs, that
may contain several
modules (from different
directories or libraries) with
the same name.

117

Advertising