SLUG Mailing List Archives
Re: [SLUG] Re: ask "core"
- To: Slug list <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] Re: ask "core"
- From: Andy Eager <eagera@xxxxxxxxxxxxxxx>
- Date: Thu May 16 08:01:02 2002
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012
Angus 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
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.