From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28953 invoked by alias); 2 Aug 2004 02:52:40 -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 28916 invoked from network); 2 Aug 2004 02:52:35 -0000 Received: from unknown (HELO hdfy) (211.167.41.66) by sourceware.org with SMTP; 2 Aug 2004 02:52:35 -0000 Date: Mon, 02 Aug 2004 02:52:00 -0000 From: "Booby Chen" Reply-To: pyghcb@163.com To: "gdb" Subject: problems with gdb multi-thread debugging and memset Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00003.txt.bz2 Message-ID: <20040802025200.BhE-Y3IuPQTtJQ8onQlVzrRCJ34lPJsMv92YHDm4M8c@z> 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. Regards, Booby Chen