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

Replace symbol definitions

 

symbol-reloadingfor the corresponding source

 

on

file when an object file with

 

 

a particular name is seen

 

 

again.

 

set

Do not replace symbol

 

symbol-reloading

definitions when

 

off

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

Page 117
Image 117
HP gnu source-level debugger 5992-4701 Functions whose names contain a match for, Step info fun step finds those whose