This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stack trace and breaking before crash


Taras D wrote:

> 1) A program that crashes is writing a stack trace. However, the stack
> trace is in heaxadecimal. Is there anyway of replacing the hexadecimal
> numbers with symbols?

Set error_start to dumper to get a real core dump instead of the stack
trace file.  Then load the core into gdb.

> 2) Is it possible to get gdb to break before the program crashes? In
> VS 2003, the program breaks execution before the crash allowing
> inspection of the stack/variables/etc. The exception I'm getting is:
> Exception: STATUS_ACCESS_VIOLATION at eip=610AE0E9. I've tried typing
> in bt after the crash occurs but the output doesn't seem to be a stack
> trace of the running program.

Set error_start to gdb and you will be taken to the point of the
exception when it occurs.

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]