Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)

info types regexp, info
types
Print a brief description of all types whose names match
regexp (or all types in your program, if you supply no
argument). Each complete typename is matched as though
it were a complete line; thus, 'i type value' gives
information on all types in your program whose names
include the string value, but 'i type ^value$' gives
information only on types whose complete name is value.
This command differs from ptype in two ways: first, like
whatis, it does not print a detailed description; second, it
lists all source files where a type is defined.
info source Show the name of the current source file―that is, the source
file for the function containing the current point of
execution―and the language it was written in.
info sources Print the names of all source files in your program for which
there is debugging information, organized into two lists:
files whose symbols have already been read, and files
whose symbols will be read when needed.
info functions Print the names and data types of all defined functions.
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 symbol address Describes the symbol at location address for symbols.
info module address The info module command identifies load modules, and
determines whether it lies in the text or data region for a
given address.
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
88 Examining the Symbol Table