Is there anyway to find the task switches from gdb coredump?
I have a coredump file which gives stacktrace. But I dont know which thread executed or any task switches happened before a crash happened from a given thread. is there anyway to find out
thanks, |
gdb is capable of debugging a core dump with this command:
Code:
gdb testit <core-dump.file> First result on Google for "gdb coredump"! ;) Happy debugging! EDIT: Oh... I see your problem... Do either "gdb testit <dump>" or "gdb --core <dump>" print the backtrace for multiple threads? |
A coredump is a snapshot, taken at some point in time (specifically, at the moment the fatal exception occurred).
Yes, you can see what each of the threads was doing at the moment the core dump was taken: Quote:
'Hope that helps .. PSM |
Thanks for the answers although it does not solve my Issue. I was aware of these commands but as paulsm4 said, I was looking for a magic command ;) . Anyway I will continue using these
|
All times are GMT -5. The time now is 09:38 PM. |