public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* pthreads debug with gdbserver
@ 2004-11-19 14:23 Vladimir Vorobyov
  2004-11-19 14:42 ` Daniel Jacobowitz
  2004-11-19 16:19 ` Andreas Schwab
  0 siblings, 2 replies; 24+ messages in thread
From: Vladimir Vorobyov @ 2004-11-19 14:23 UTC (permalink / raw)
  To: gdb

Hi,

Im using gbd 6.2 + gdbserver for m68k target and able to debug programs with 
it. But when I tried to debug application with pthreads I could not get 
correct threads information.
During debbuging I receive a well known SIG32 but searching this mail list I 
did not find the solution for my problem.
What I did:
******************************************************************************************
[root@Vlad]# ./m68k-linux-gdb
GNU gdb 6.2
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=m68k-linux".
(gdb) file /tftpboot/Linux_BSP2/rootfsdir/bin/hello
Reading symbols from 
/opt/Embedix/home/vladimir/project/rootfsdir/bin/hello...done.
(gdb) maintenance info breakpoints
Num Type           Disp Enb Address    What
-1  longjmp resume keep n   0x00000000
(gdb) set solib-absolute-prefix /tftpboot/Linux_BSP2/rootfsdir/
(gdb) target remote 192.168.1.27:3000
Remote debugging using 192.168.1.27:3000
0x400020c0 in ?? ()
(gdb) maintenance info breakpoints
Num Type           Disp Enb Address    What
-1  longjmp resume keep n   0x00000000
-2  shlib events   keep y   0x4000dd04
(gdb) c
Continuing.

Program received signal SIG32, Real-time event 32.
0x400a8b2e in ?? ()
(gdb) maintenance info breakpoints
Num Type           Disp Enb Address    What
-1  longjmp resume keep n   0x00000000
-2  shlib events   keep y   0x4000dd04
        breakpoint already hit 3 times
***************************************************************************************************
I see that shlib breakpoint is set and hit but gdb does not load the 
libraries. I can see in strace that it successfully loads ld.so. What should 
I look at?
Next, what libthread_db.so is for? It was not included for compilation for 
m68k target and I added it manually but when I try to load all libraries 
manually using add-symbol-file, every library loads fine except 
libthread_db.so - gdbserver reports "gbd: error initializing thread_db 
library."
If I type in gdb:
	info threads
I always get only one thread.
p.s. All libraries are not stripped.


Any help would be very appreciated.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2004-12-07 14:56 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-19 14:23 pthreads debug with gdbserver Vladimir Vorobyov
2004-11-19 14:42 ` Daniel Jacobowitz
2004-11-19 15:59   ` Vladimir Vorobyov
2004-11-20 10:01     ` Daniel Jacobowitz
2004-11-20 16:42       ` Vladimir Vorobyov
2004-11-20 16:57         ` Daniel Jacobowitz
2004-11-20 17:13           ` Andreas Schwab
2004-11-20 17:38           ` Vladimir Vorobyov
2004-12-06 18:41           ` NPTL on ppc (was: pthreads debug with gdbserver) Linh Dang
2004-12-06 18:45             ` Daniel Jacobowitz
2004-12-06 19:56               ` NPTL on ppc Linh Dang
2004-12-06 20:18                 ` Daniel Jacobowitz
2004-12-06 22:41                   ` Andreas Schwab
2004-12-06 23:20                   ` Andreas Schwab
2004-12-07 14:33                     ` Linh Dang
2004-12-07 14:56                       ` Andreas Schwab
2004-12-06 22:04                 ` Andreas Schwab
2004-11-22 14:07       ` pthreads debug with gdbserver Vladimir Vorobyov
2004-11-22 18:04         ` Daniel Jacobowitz
2004-11-23 19:33           ` Vladimir Vorobyov
2004-11-19 16:19 ` Andreas Schwab
2004-11-19 17:30   ` Vladimir Vorobyov
2004-11-20  1:31     ` Andreas Schwab
2004-11-20  1:32       ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).