From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18544 invoked by alias); 3 Aug 2004 13:02:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18528 invoked from network); 3 Aug 2004 13:02:36 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 3 Aug 2004 13:02:36 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1Bryug-0002xZ-1X; Tue, 03 Aug 2004 09:01:06 -0400 Date: Tue, 03 Aug 2004 13:02:00 -0000 From: Daniel Jacobowitz To: Booby Chen Cc: gdb Subject: Re: problems with gdb multi-thread debugging and memset Message-ID: <20040803130105.GA11311@nevyn.them.org> Mail-Followup-To: Booby Chen , gdb References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-08/txt/msg00005.txt.bz2 On Mon, Aug 02, 2004 at 10:52:15AM +0800, Booby Chen wrote: > Hi all, > > when I use gdb to debug a multithread program like the following: > > (gdb) inf thr > 4 Thread 2051 (LWP 14625) 0x420292e5 in sigsuspend () from /lib/i686/libc.so.6 > * 3 Thread 1026 (LWP 14624) sch_hd_core (arg=0x8ac60f8) at schrun.cpp:221 > 2 Thread 2049 (LWP 14623) 0x420e0037 in poll () from /lib/i686/libc.so.6 > 1 Thread 1024 (LWP 14619) 0x420b4b31 in nanosleep () from /lib/i686/libc.so.6 > > (gdb) n > 221 memset(&req4sch,0,sizeof(req4sch)); > > and when I use the command "next", the thread 3 can not go on, but if I change the current > thread to thread 4 and use the command "next", the thread 3 and 4 can go on. > > can anybody tell me the reason of this??Thanks. What do you mean by "can not go on"? -- Daniel Jacobowitz