Chapter 17. gdb Files
143
NEVER_LOAD
An instruction to the linker to not output the section.
COFF_SHARED_LIBRARY
A notification to the linker that the section contains COFF shared library information.
IS_COMMON
Section contains common symbols.
set trust-readonly-sections on
Tell gdb that readonly sections in your object file really are read-only (that is, that their contents
will not change). In that case, gdb can fetch values from these sections out of the object file,
rather than from the target program. For some targets (notably embedded ones), this can be a
significant enhancement to debugging performance.
The default is off.
set trust-readonly-sections off
Tell gdb not to trust readonly sections. This means that the contents of the section might change
while the program is running, and must therefore be fetched from the target when needed.
All file-specifying commands allow both absolute and relative file names as arguments. gdb always
converts the file name to an absolute file name and remembers it that way.
gdb supports HP-UX, SunOS, SVr4, Irix 5, and IBM RS/6000 shared libraries.
gdb automatically loads symbol definitions from shared libraries when you use the
run
command,
or when you examine a core file. (Before you issue the
run
command, gdb does not understand
references to a function in a shared library, however--unless you are debugging a core file).
On HP-UX, if the program loads a library explicitly, gdb automatically loads the symbols at the time
of the
shl_load
call.
There are times, however, when you may wish to not automatically load symbol definitions from
shared libraries, such as when they are particularly large or there are many of them.
To control the automatic loading of shared library symbols, use the commands:
set auto-solib-add
mode
If
mode
is
on
, symbols from all shared object libraries will be loaded automatically when the
inferior begins execution, you attach to an independently started inferior, or when the dynamic
linker informs gdb that a new library has been loaded. If
mode
is
off
, symbols must be loaded
manually, using the
sharedlibrary
command. The default value is
on
.
show auto-solib-add
Display the current autoloading mode.
To explicitly load shared library symbols, use the
sharedlibrary
command:
info share
info sharedlibrary
Print the names of the shared libraries which are currently loaded.
Содержание ENTERPRISE LINUX 4 - DEVELOPER TOOLS GUIDE
Страница 1: ...Red Hat Enterprise Linux 4 Debugging with gdb ...
Страница 12: ...2 Chapter 1 Debugging with gdb ...
Страница 28: ...18 Chapter 4 Getting In and Out of gdb ...
Страница 34: ...24 Chapter 5 gdb Commands ...
Страница 44: ...34 Chapter 6 Running Programs Under gdb ...
Страница 68: ...58 Chapter 8 Examining the Stack ...
Страница 98: ...88 Chapter 10 Examining Data ...
Страница 112: ...102 Chapter 12 Tracepoints ...
Страница 118: ...108 Chapter 13 Debugging Programs That Use Overlays ...
Страница 138: ...128 Chapter 14 Using gdb with Different Languages ...
Страница 144: ...134 Chapter 15 Examining the Symbol Table ...
Страница 170: ...160 Chapter 19 Debugging remote programs ...
Страница 198: ...188 Chapter 21 Controlling gdb ...
Страница 204: ...194 Chapter 22 Canned Sequences of Commands ...
Страница 206: ...196 Chapter 23 Command Interpreters ...
Страница 216: ...206 Chapter 25 Using gdb under gnu Emacs ...
Страница 296: ...286 Chapter 27 gdb Annotations ...
Страница 300: ...290 Chapter 28 Reporting Bugs in gdb ...
Страница 322: ...312 Chapter 30 Using History Interactively ...
Страница 362: ...352 Appendix D gdb Remote Serial Protocol ...
Страница 380: ...370 Appendix F GNU GENERAL PUBLIC LICENSE ...
Страница 386: ...376 Appendix G GNU Free Documentation License ...
Страница 410: ......