LinuxQuestions.org
Visit Jeremy's Blog.
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
 
Search this Thread
Old 03-05-2005, 05:56 PM   #1
linuxdeveloper
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
GDB unable to debug pthreads


I am using White Dwarf Linux which is a Slackware derivative. The kernel version is 2.4.24 and uses gcc 3.2.3
I downloaded gdb6.3 and 6.2 and built for my WDLinux platform. But then I found out that when I try debugging a multi-threaded program(based on pthreads), I cant list the threads or break in any of the threads other than the main one.
Eg., info threads displays nothing. Running command thread simply displays "Current thread is 0 [LWP xxxx]".
I dont see the customary display when each thread is spawned.
Eg., "New thread XX[LWP yyyy]"

Does anyone know how to get this working? Do I need to enable any setting within gdb to debug threads? Is there something that I need to configure while building gdb itself? I didnt have any trouble building GDB.

Thanx in advance
 
Old 03-06-2005, 05:18 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved to Programming as I think you'll get some useful answers out of our programming people.

And welcome to LQ
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to step through function in shared object library using gdb markhod Programming 2 01-03-2009 02:00 AM
how can I debug the interactinve program with GDB bigapple Programming 1 08-03-2005 09:55 PM
How to use gdb to debug child process? ariana Programming 2 05-03-2005 01:50 PM
Using gdb to debug different arhitectures george_mercury Linux - Software 1 01-07-2005 06:19 PM
how to debug multithread using GDB? ryanux Programming 1 05-11-2004 12:58 AM


All times are GMT -5. The time now is 03:06 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 Google+: linuxquestions
Open Source Consulting | Domain Registration