Controlling and Examining Files
-
add-symbol-file Add symbols from a dynamically loaded file to GDB’s symbol table.
-
add-symbol-file-from-memory Load the symbols from a dynamically loaded object file in the debuggee’s memory.
-
cd Set the current directory for GDB and the debuggee.
-
core-file Specify a file to use as the core dump for memory and register contents.
-
directory Add a directory to the beginning of the source file search path.
-
edit Edit a file or function.
-
exec-file Specify a file to use as the executable.
-
file Specify the filename of the program to be debugged.
-
forward-search Search forward in the current source file for a regular expression, starting at the last line listed.
-
generate-core-file Create a core file from the current state of the debuggee.
-
list List a function or line.
-
nosharedlibrary Unload all shared object library symbols.
-
path Add one or more directories to the object file search path.
-
pwd Print the current directory.
-
reverse-search Search backward in the current source file for a regular expression, starting at the last line listed.
-
search Same as
forward-search.-
section Change the base address of a particular section in the exec file.
-
sharedlibrary Load shared object library symbols for files matching a regular expression.
-
symbol-file Load symbol table information from a specified executable file.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access