ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am writing a multithreaded Application. While debugging it , the debugger ( gdb ) fails many times, I want to ask whether there is some good debugger for multithreaded programs.
I usaually use DDD or Debugger for debugging. DDD or the other one Debugger both are GUI's for gdb and i think the are good and eassy to use. Try them. I have also used them in multithreaded apps. They are good
Wish you all the best.
Originally posted by villie I am writing a multithreaded Application. While debugging it , the debugger ( gdb ) fails many times,
Read these info pages:
shell$ info gdb running threads
shell$ info gdb running processes
If you are running a 2.6.x kernel, you may also need to upgrade gdb to make it work with threads and forks(). That's what fixed my gdb to be able to debug SDL programs (SDL programs are always threaded)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.