f78
Choosing files
Many options have both long and short forms; both are shown in the following
list. GDB also recognizes the long forms if you truncate them, so long as enough
of the option is present to be unambiguous. (If you prefer, you can flag
option arguments with
-s file
-d directory
-mapped
The
Warning:
-
-readnow
The
A
Read symbol table from file, file.
Use file, file, as the executable file to execute when appropriate, and for examining pure
data in conjunction with a core dump.
Read symbol table from file, file, and use it as the executable file.
Use file, file, as a core dump to examine.
Connect to process ID number, as with the attach command (unless there is a file in coredump format named number, in which case -c specifies that file as a core dump to read).
Execute GDB commands from file, <
bf5
I>file. See Command files.
Add directory to the path to search for source files.
If memory-mapped files are available on your system through the mmap system call, you can use this option to have GDB write the symbols from your
program into a reusable file in the current directory. If the program you are
debugging is called /tmp/fred, the mapped symbol file is ./fred.syms. Future GDB debugging sessions notice the presence of this file, and can
quickly map in symbol information from it, rather than reading the symbol table
from the executable program.
This option depends on operating system facilities that are not supported on
all systems.
Read each symbol files entire symbol table immediately, rather than the
default, which is to read it incrementally as it is needed. This makes startup
slower, but makes future operations faster.