【发布时间】:2013-08-22 22:27:55
【问题描述】:
GDB 中是否有与 WinDbg 的 !process 0 7 等效的命令?
我想提取转储文件中的所有线程以及它们在 GDB 中的回溯。 info threads 不输出堆栈跟踪。那么,有没有这样的命令呢?
【问题讨论】:
-
LLDB is
bt all的相应命令——以防有人通过 Google 找到这个(认为 GDB == LLDB)。 -
使用 python 可以在 gdb.selected_inferior().threads() 中为线程工作" (gdb) python: thread.switch(); print(thread.num);gdb.execute('where ')"
-
@kennytm 这足以提出问题 IMO
-
事实上,我创建了确切的问题:stackoverflow.com/questions/67820406/…
标签: multithreading debugging gdb backtrace