From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25766 invoked by alias); 20 Jan 2009 07:28:44 -0000 Received: (qmail 25757 invoked by uid 22791); 20 Jan 2009 07:28:43 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_84,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-vbr3.xs4all.nl (HELO smtp-vbr3.xs4all.nl) (194.109.24.23) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Jan 2009 07:28:37 +0000 Received: from mail3.aimsys.nl (a80-127-156-242.adsl.xs4all.nl [80.127.156.242]) by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id n0K7SWdJ059569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Jan 2009 08:28:33 +0100 (CET) (envelope-from nvbolhuis@aimvalley.nl) Received: from linpc062.aimsys.nl (linpc062.aimsys.nl [10.10.4.142]) (authenticated bits=0) by mail3.aimsys.nl (8.14.2/8.14.2) with ESMTP id n0K7SSe7031144; Tue, 20 Jan 2009 08:28:29 +0100 Message-ID: <49757D1C.7010309@aimvalley.nl> Date: Tue, 20 Jan 2009 07:28:00 -0000 From: Norbert van Bolhuis User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: teawater CC: gdb@sourceware.org Subject: Re: gdb doesn't show all threads, but gdbserver does References: <4974EBFF.307@aimvalley.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00110.txt.bz2 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 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)