Chapter 15. Examining the Symbol Table
131
•
which programming language it is written in,
•
whether the executable includes debugging information for that file, and if so, what format the
information is in (e.g., STABS, Dwarf 2, etc.), and
•
whether the debugging information includes information about preprocessor macros.
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 regu-
lar expression
regexp
. Thus,
info fun step
finds all functions whose names include
step
;
info fun ^step
finds those whose names start with
step
. If a function name contains charac-
ters that conflict with the regular expression language (eg.
operator*()
), they may be quoted
with a backslash.
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
.
info classes
info classes
regexp
Display all Objective-C classes in your program, or (with the
regexp
argument) all those match-
ing a particular regular expression.
info selectors
info selectors
regexp
Display all Objective-C selectors in your program, or (with the
regexp
argument) all those
matching a particular regular expression.
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.
Summary of Contents for ENTERPRISE LINUX 4 - DEVELOPER TOOLS GUIDE
Page 1: ...Red Hat Enterprise Linux 4 Debugging with gdb ...
Page 12: ...2 Chapter 1 Debugging with gdb ...
Page 28: ...18 Chapter 4 Getting In and Out of gdb ...
Page 34: ...24 Chapter 5 gdb Commands ...
Page 44: ...34 Chapter 6 Running Programs Under gdb ...
Page 68: ...58 Chapter 8 Examining the Stack ...
Page 98: ...88 Chapter 10 Examining Data ...
Page 112: ...102 Chapter 12 Tracepoints ...
Page 118: ...108 Chapter 13 Debugging Programs That Use Overlays ...
Page 138: ...128 Chapter 14 Using gdb with Different Languages ...
Page 144: ...134 Chapter 15 Examining the Symbol Table ...
Page 170: ...160 Chapter 19 Debugging remote programs ...
Page 198: ...188 Chapter 21 Controlling gdb ...
Page 204: ...194 Chapter 22 Canned Sequences of Commands ...
Page 206: ...196 Chapter 23 Command Interpreters ...
Page 216: ...206 Chapter 25 Using gdb under gnu Emacs ...
Page 296: ...286 Chapter 27 gdb Annotations ...
Page 300: ...290 Chapter 28 Reporting Bugs in gdb ...
Page 322: ...312 Chapter 30 Using History Interactively ...
Page 362: ...352 Appendix D gdb Remote Serial Protocol ...
Page 380: ...370 Appendix F GNU GENERAL PUBLIC LICENSE ...
Page 386: ...376 Appendix G GNU Free Documentation License ...
Page 410: ......