Skip to content

18 gdb Files

18.1 Commands to Specify Files

exec-file [ filename ]

symbol-file [ filename ]

add-symbol-file filename address

The add-symbol-file command reads additional symbol table information from the file filename. You would use this command when filename has been dynamically loaded (by some other means) into the program that is running.

NOTE: 是在阅读Load Shared library Symbols时,发现的这个command,它让我想起来了有时候glibc抛出exception导致program core dump。在Shell-and-tools\Tools\Debug\GDB\Debugging-with-gdb\GDB-Command-Reference.md中收录了这部分内容。