LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-17-2004, 03:53 AM   #1
villie
Member
 
Registered: Apr 2004
Location: Pakistan
Distribution: RedHat
Posts: 46

Rep: Reputation: 15
Debugging Multithreaded Program


Hi all,

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.

Best Regards
Villie
 
Old 08-17-2004, 04:31 AM   #2
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
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.
 
Old 08-17-2004, 11:24 AM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,524

Rep: Reputation: 93
Re: Debugging Multithreaded Program

Quote:
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)

Last edited by Hko; 08-17-2004 at 11:26 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does a multithreaded program gets hanged at recvfrom()? kranti Programming 1 10-17-2005 10:44 AM
Why does a multithreaded program gets hanged at recvfrom()? kranti Linux - Newbie 1 10-17-2005 04:40 AM
Why does a multithreaded program gets hanged at recvfrom()? kranti Linux - General 1 10-17-2005 04:09 AM
Probelm regarding multithreaded program? geethu Programming 2 08-10-2005 12:39 AM
Signal handling in Multithreaded program souvik Programming 4 08-23-2002 07:28 AM


All times are GMT -5. The time now is 04:41 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration