多线程调试器
GDB在使用多线程(pthreads)进行调试时会遇到严重问题。
在* nix上有没有其他好的C / C ++多线程调试器?
GDB has severe issues when debugging with multiple threads (pthreads). Are there any other good multi-threaded debuggers for C/C++ on *nix?
我个人调试多线程应用程序时没有任何GDB特定的问题,因此您可能有必要详细说明您所遇到的问题。这将有助于我们更好地回答你。
I've personally not had any GDB specific issues when debugging a multi-threaded application, so it may helpful for you to elaborate on exactly what "issues" you are having. It will help us answer you better.
在linux中调试多线程应用程序时,我以前使用过几种辅助工具,其中大部分基于GDB,而不是更换它。这些包括:
There are several aids that I have used in the past when debugging multi-threaded applications in linux, most of which build upon GDB rather than replace it. These include:
- DDD http://www.gnu.org/software/ddd/
- Eclipse http://www.eclipse.org/
- 本机POSIX线程库(NTPL)跟踪工具 http://nptltracetool.sourceforge.net/
- DDD http://www.gnu.org/software/ddd/
- Eclipse http://www.eclipse.org/
- Native POSIX Thread Library (NTPL) Trace Tool http://nptltracetool.sourceforge.net/
另外,如果您刚刚在Linux中进行调试(即使不是这样),我强烈推荐您可以在这里找到题为调试Linux应用程序的文章:
Additionally, if you are new to debugging in Linux (and even if you aren't!) I highly recommend the paper titled "Debugging Linux Applications" which you can find here: