Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
To: teawater <teawater@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: gdb doesn't show all threads, but gdbserver does
Date: Tue, 20 Jan 2009 07:28:00 -0000	[thread overview]
Message-ID: <49757D1C.7010309@aimvalley.nl> (raw)
In-Reply-To: <daef60380901191621v4b9c5450k4518c8eb8804a694@mail.gmail.com>


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)



  reply	other threads:[~2009-01-20  7:28 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19 21:09 N. van Bolhuis
2009-01-20  0:21 ` teawater
2009-01-20  7:28   ` Norbert van Bolhuis [this message]
2009-01-20 18:37     ` Paul Pluzhnikov
2009-01-20 20:18       ` N. van Bolhuis
2009-01-20 20:36         ` Paul Pluzhnikov
2009-01-20 21:17           ` N. van Bolhuis
2009-01-20 22:24             ` Andreas Schwab
2009-01-20 22:45               ` Paul Pluzhnikov
2009-01-21  0:10                 ` teawater
2009-01-21 10:32                 ` Norbert van Bolhuis
2009-01-21 11:24                   ` teawater
2009-01-21 13:45                     ` teawater
2009-01-21 16:41                       ` Paul Pluzhnikov
2009-02-12  3:08                 ` teawater
2009-02-12  3:08                   ` teawater
2009-01-21  0:05             ` teawater
2009-01-21  0:14               ` Paul Pluzhnikov
2009-01-21  0:26                 ` teawater
2009-01-21  2:35                   ` teawater
2009-01-21  4:16                     ` Daniel Jacobowitz
2009-01-21  7:14                       ` teawater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49757D1C.7010309@aimvalley.nl \
    --to=nvbolhuis@aimvalley.nl \
    --cc=gdb@sourceware.org \
    --cc=teawater@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox