gdb doesn't show all threads, but gdbserver does

N. van Bolhuis nvbolhuis@aimvalley.nl
Mon Jan 19 21:09:00 GMT 2009


I built a gdb (v6.8) for powerpc to be executed on powerpc target
(This GDB was configured as "powerpc-e300c3-linux"...).
If I use this target gdb to debug my powerpc program and hit a
breakpoint "info threads" shows only one thread.
This is incorrect since there are 7 threads (cat /proc/<pid>/status
shows 7 threads).

If I debug the same program using gdbserver on target and gdb on a 
host=i686 (This GDB was configured as "--host=i686-linux
--target=powerpc-e300c3-linux"...) "info threads" shows the expected 7
threads.

How can this be ?

(I noticed the target gdbserver needs libthread_db.so.1, the target gdb
  does not. Maybe this is what's causing this).





More information about the Gdb mailing list