Download GDB User Manual - C programming language ressources
Transcript
Chapter 15: gdb Files 159 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 (i.e. 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. show trust-readonly-sections Show the current setting of trusting readonly sections. 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 GNU/Linux, MS-Windows, HP-UX, SunOS, SVr4, Irix, and IBM RS/6000 AIX 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. If your program uses lots of shared libraries with debug info that takes large amounts of memory, you can decrease the gdb memory footprint by preventing it from automatically loading the symbols from shared libraries. To that
Related documents
HP gnu source-level debugger 5992-4701 User's Manual
Data processing system including a separate input/output processor
gdb960 User`s Manual
fulltext01 - DiVA Portal
User Manual
THAT BEFORE! THAT BEFORE!
Debugging with GDB - ESA Microelectronics Section
Windows 2000 09
Red Hat Developer Toolset 2.x User Guide