how to know state of the thread while debugging core dump with gdb on linux?
-
06-06-2021 - |
質問
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
解決
Please refer to this page
http://linux-hacks.blogspot.com/2009/07/looking-at-thread-state-inside-gdb.html
他のヒント
With "Reversible Debugging" of gdb 7.4 it is possible. Look here for a little tutorial.
所属していません StackOverflow