“thread apply all bt full” gives blank in GDB

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-11 11:19:20

问题


I was trying to debug a multi-threaded process on a Linux server running Slackware 12 using GDB 6.6.

Once I attach and issue the command "thread apply all bt full" it comes back with nothing ( back on to the gdb prompt ).

Any idea why this happens?


回答1:


Try last GDB version. 7.1 or 7.2. Everything should work.




回答2:


I ran into this problem and discovered that I can fix it as follows:

  1. run "bt". this should show the backtrace of a thread, although maybe not the one you want.
  2. now "cont".
  3. hit ctrl+c. I see something like "[Switching to LWP %d]"
  4. hit ctrl+c again. this breaks at the thread i want to see the backtrace of, but also seems to make "thread apply all bt full" start working.


来源:https://stackoverflow.com/questions/2112206/thread-apply-all-bt-full-gives-blank-in-gdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!