This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: multithreaded programs on arm-linux
Quoting Daniel Jacobowitz <drow@false.org>:
On Tue, Nov 01, 2005 at 07:10:51PM +0100, frank@betaversion.net wrote:
libthread_db is available on the system (/lib/libthread_db.so.1).
gdb successfully ran "thread_db_load()".
Any ideas how i can debug this?
Has libpthread.so been stripped? Debug info can be removed, but you
must leave the static symbol table (.symtab) to use native libthread_db.
No, it hasn't been stripped. And the the section .symtab also seems
to be available.
$ file libthread_db.so.1
libthread_db.so.1: ELF 32-bit LSB shared object, ARM, version 1 (ARM), not
stripped
$ readelf -a libthread_db.so.1
Section Headers:
[...]
[26] .symtab SYMTAB 00000000 0047ec 000f80 10 27 189 4
[...]
Symbol table '.symtab' contains 248 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000100 0 SECTION LOCAL DEFAULT 1
2: 00000120 0 SECTION LOCAL DEFAULT 2
3: 0000041c 0 SECTION LOCAL DEFAULT 3
[...]
245: 00003254 268 FUNC GLOBAL DEFAULT 13 td_ta_clear_event
246: 000022a0 204 FUNC GLOBAL DEFAULT 13 td_thr_setfpregs
247: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
[...]
Regards,
Frank