This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug threads/9905] gdb 6.8.50.20090225-cvs shows only one thread
- From: "teawater at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 28 Feb 2009 05:10:24 -0000
- Subject: [Bug threads/9905] gdb 6.8.50.20090225-cvs shows only one thread
- References: <20090225232542.9905.ich@az2000.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From teawater at gmail dot com 2009-02-28 05:10 -------
This issue is because:
Your system gdb's debug-file-directory is set to "/usr/lib/debug".
(gdb) show debug-file-directory
The directory where separate debug symbols are searched for is "/usr/lib/debug".
Then this gdb work with debug lib is OK.
The debug-file-directory of gdb that compiled by yourself is set to
"/usr/local/lib/debug".
(gdb) show debug-file-directory
The directory where separate debug symbols are searched for is
"/usr/local/lib/debug".
Then this gdb can't find the debug lib.
you can set it with your self.
For example:
(gdb) set debug-file-directory /usr/lib/debug
(gdb) attach 21190
Attaching to process 21190
Reading symbols from /home/teawater/gdb/a.out...done.
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...Reading symbols from
/usr/lib/debug/lib/tls/i686/cmov/libpthread-2.8.90.so...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb6e6ab90 (LWP 21193)]
[New Thread 0xb766bb90 (LWP 21192)]
[New Thread 0xb7e6cb90 (LWP 21191)]
done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...Reading symbols from
/usr/lib/debug/lib/tls/i686/cmov/libc-2.8.90.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols from
/usr/lib/debug/lib/ld-2.8.90.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
0xb800e422 in __kernel_vsyscall ()
(gdb) info threads
During symbol reading, incomplete CFI data; unspecified registers (e.g., eax) at
0xb800e420.
4 Thread 0xb7e6cb90 (LWP 21191) 0xb800e422 in __kernel_vsyscall ()
3 Thread 0xb766bb90 (LWP 21192) 0xb800e422 in __kernel_vsyscall ()
2 Thread 0xb6e6ab90 (LWP 21193) 0xb800e422 in __kernel_vsyscall ()
* 1 Thread 0xb7e6dae0 (LWP 21190) 0xb800e422 in __kernel_vsyscall ()
(gdb)
And the debug-file-directory is set in gdb configure, so you can change it by
re-config your gdb.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=9905
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.