多线程调试 [英] Multithreaded Debugger
问题描述
GDB多线程(pthreads的)进行调试时有严重的问题。
是否有C / C任何其他好的多线程调试++在* nix?
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多线程应用程序,其中大部分建立在广发行,而不是取代它时使用了几种助剂。这些措施包括:
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:
- http://www.gnu.org/software/ddd/
- 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:
http://www.scribd.com/doc/3009706/Debugging- Linux的应用程序
这篇关于多线程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!