This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Missing thread support..
- From: Rob Kramer <robk at starhub dot net dot sg>
- To: gdb at sourceware dot org
- Date: Mon, 14 Aug 2006 23:52:23 +0800
- Subject: Missing thread support..
Hi,
When trying to find a deadlock in my program, I noticed my gdb (6.4 for
i586-linux target, cross-compiled by OpenEmbedded) lacks thread support. It
doesn't detect when a new thread starts, and 'info threads' always returns an
empty list. Below is the output on i586-linux, versus a proper setup that
works as expected:
OpenEmbedded distro (gdb 6.4):
--------------------
This GDB was configured as "i586-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".
(gdb) r 2
Starting program: /home/root/phello 2
Hello from node 0
Hello from node 1
--------------------
SUSE 10.1 (gdb 6.3):
--------------------
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".
(gdb) r 2
Starting program: /home/rob/phello 2
[Thread debugging using libthread_db enabled]
[New Thread -1210440016 (LWP 13673)]
[New Thread -1210442848 (LWP 13676)]
Hello from node 0
Hello from node 1
--------------------
I've probably misconfigured or mis-crosscompiled my gdb, but how can I find
out where I should start looking? Is there a way gdb can tell me why it
doesn't support thread debugging? Do the config.{log|status} files record
what might be wrong? (It all seems correct to me)
Glibc is version 2.4, (cross) gcc is 4.1.1, linux 2.6.16.27.
Cheers!
Rob
--
1.8026175e+12 furlongs per fortnight.