gdb.info: GDB Files

Go forward to Targets
Go backward to Altering
Go up to Top
Go to the top op gdb

GDB Files

GDB needs to know the file name of the program to be debugged, both in
order to read its symbol table and in order to start your program.  To
debug a core dump of a previous run, you must also tell GDB the name of
the core dump file.