sandeep
sandeep

Reputation: 513

how to know state of the thread while debugging core dump with gdb on linux?

i am getting crash in the thread. while debugging coredump with gdb, i want to see the state of the thread just before crash.

in my program i am raising a signal for that thread and handling it. it would be helpful to know the state before the thread has crashed and the time before the signal raised for that thread. is it possible to obtain this information from gdb?

Thanks

Upvotes: 0

Views: 4526

Answers (2)

silvio
silvio

Reputation: 2294

With "Reversible Debugging" of gdb 7.4 it is possible. Look here for a little tutorial.

Upvotes: 1

Related Questions