多线程调试器 [英] Multithreaded Debugger

查看:191
本文介绍了多线程调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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/
  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆