This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb doesn't show all threads, but gdbserver does
thanks for your reply teawater.
Btw. I'm using linux-2.6.28, gcc-4.2.4, glibc-2.7 and gdb-6.8.
There is no error message from gdb, see below:
# ./gdb /mnt/norbert/mainctrl.exe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-e300c3-linux"...
(gdb) br PisIdInterpreter.C:265
Breakpoint 1 at 0x10046644: file /local/common_2/pis-2.0/pis/src/PisIdInterpreter.C, line 265.
(gdb) run
Starting program: /mnt/norbert/mainctrl.exe
========
Build information:
Date: 09-01-15 Time: 13:14:32
CVS tag: (none)
User: nvbolhuis
Ali Model:
Date: 09-01-13 Time: 10:01:26
========
InitProcesses: applications initialized
Username:root
[New LWP 928]
[Switching to LWP 928]
Breakpoint 1, PisIdInterpreter::interpreter (this=0x10365d68)
at /local/common_2/pis-2.0/pis/src/PisIdInterpreter.C:265
265 if (!userInput) {
(gdb) info thr
* 1 LWP 928 PisIdInterpreter::interpreter (this=0x10365d68)
at /local/common_2/pis-2.0/pis/src/PisIdInterpreter.C:265
(gdb) [1] + Stopped ./gdb /mnt/norbert/mainctrl.exe
# ps
PID USER VSZ STAT COMMAND
1 root 3184 S init
2 root 0 SW< [kthreadd]
3 root 0 SW< [ksoftirqd/0]
4 root 0 SW< [watchdog/0]
5 root 0 SW< [events/0]
6 root 0 SW< [khelper]
82 root 0 SW< [kblockd/0]
95 root 0 SW< [khubd]
141 root 0 SW [pdflush]
142 root 0 SW [pdflush]
143 root 0 SW< [kswapd0]
191 root 0 SW< [aio/0]
198 root 0 SW< [nfsiod]
799 root 0 SW< [mtdblockd]
874 root 0 SW< [hid_compat]
879 root 0 SW< [rpciod/0]
886 root 3188 R -sh
892 root 0 SWN [jffs2_gcd_mtd6]
897 root 3184 S telnetd
919 root 19588 T ./gdb /mnt/norbert/mainctrl.exe
920 root 13352 T N /mnt/norbert/mainctrl.exe
930 root 3188 R ps
# cat /proc/920/status
Name: mainctrl.exe
State: T (tracing stop)
Tgid: 920
Pid: 920
PPid: 919
TracerPid: 919
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 32
Groups: 0 1 2 3 4 6 10
VmPeak: 13352 kB
VmSize: 11428 kB
VmLck: 0 kB
VmHWM: 3404 kB
VmRSS: 3404 kB
VmData: 6696 kB
VmStk: 84 kB
VmExe: 528 kB
VmLib: 3592 kB
VmPTE: 28 kB
Threads: 7
SigQ: 1/1024
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000001000
SigIgn: 0000000000080004
SigCgt: 0000000188102002
CapInh: 0000000000000000
CapPrm: fffffffffffffeff
CapEff: fffffffffffffeff
CapBnd: fffffffffffffeff
voluntary_ctxt_switches: 11
nonvoluntary_ctxt_switches: 2
# fg
./gdb /mnt/norbert/mainctrl.exe
* 1 LWP 928 PisIdInterpreter::interpreter (this=0x10365d68)
at /local/common_2/pis-2.0/pis/src/PisIdInterpreter.C:265
(gdb)