SLUG Mailing List ArchivesAngus Lees wrote:
At Wed, 15 May 2002 18:52:03 +0800, henry wrote:I often see "core dumped" or "gdb -core=/usr/file" but there are lots of machine-code when I read the file(core) from editor-Joe Could someone share his experience or give some clues? What on earth it is for ?debugging. its a copy of what was in memory at the time the core was generated (usually in response to a segfault). for example, do: gdb /path/to/core /usr/bin/executable_that_generated_the_corefile
slight correction:
gdb -c /path_to_core /path_to_exe_that_generated_the_corefile
and type "where" at the gdb prompt.
Assumes you have compiled with the -g or -gdb option to be of much use. Andy