This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Crash log
- From: "Robin Rowe" <rower at MovieEditor dot com>
- To: <gdb at sources dot redhat dot com>
- Date: Mon, 22 Sep 2003 13:46:08 -0700
- Subject: Crash log
Hi. This isn't really a gdb question, but I don't know where else to ask.
When a program catches a bad signal such as SIGSEGV I want to write a crash
log entry before the program exits. Is there anything useful I can put in
the log besides the name of the program and when it crashed? Is it ok to
write this log from my signal catcher, or should it first fork?
Is there some kind of useful state info (assuming the program contains no
debugging info) that I can write to a log file at the time of death? Can I
get an instruction pointer that I can relate back to the original souce
somehow to determine what line of code crashed?
Thanks!
Robin
---------------------------------------------------------------------------
Robin.Rowe@MovieEditor.com Hollywood, California
www.CinePaint.org Free motion picture and still image editing software