0

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

sandeep
  • 513
  • 9
  • 17
  • This thread has enough information about it: http://stackoverflow.com/questions/4077129/core-dump-of-multithreaded-application-shows-only-one-thread – wuliang May 08 '12 at 13:28

2 Answers2

1

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

silvio
  • 2,174
  • 20
  • 36
0

Please refer to this page

http://linux-hacks.blogspot.com/2009/07/looking-at-thread-state-inside-gdb.html

masay
  • 923
  • 2
  • 17
  • 34