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