Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 03-05-2005, 06:56 PM   #1
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, 06:18 AM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

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

And welcome to LQ


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 03:00 AM
how can I debug the interactinve program with GDB bigapple Programming 1 08-03-2005 10:55 PM
How to use gdb to debug child process? ariana Programming 2 05-03-2005 02:50 PM
Using gdb to debug different arhitectures george_mercury Linux - Software 1 01-07-2005 07:19 PM
how to debug multithread using GDB? ryanux Programming 1 05-11-2004 01:58 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:46 PM.

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