gdb & objcopy Flashcards
1
Q
objcopy –add-gnu-debuglink=
A
Add a debug symbol file to an existing binary
2
Q
info functions
A
Shows function info in gdb
3
Q
info source
A
Shows source info in gdb if the source file is present
4
Q
info variables
A
Shows variable info in gdb
5
Q
info scope FUNCTIONNAME
A
Info on variables ina specific scope
6
Q
info scope
A
Shows functions with scoped variables
7
Q
objcopy –only-keep-debug
A
Strips symbols from binary into a separate file
8
Q
strip –strip-debug –strip-unneeded
A
Removes all possible symbols from a binary
9
Q
(gdb) symbol-file FILENAME
A
Loads a symbol file into gdb
10
Q
maint print symbols FILENAME
A
Dumps symbols to file. Not sure whether this is inside of gdb or not.