From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8828 invoked by alias); 8 Aug 2008 19:30:12 -0000 Received: (qmail 8806 invoked by uid 22791); 8 Aug 2008 19:30:09 -0000 X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Aug 2008 19:29:34 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 0E0354EBE; Fri, 8 Aug 2008 15:29:31 -0400 (EDT) Subject: Re: ttrace: Protocal error To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Fri, 08 Aug 2008 19:30:00 -0000 From: "John David Anglin" Cc: pedro@codesourcery.com, gdb-patches@sourceware.org In-Reply-To: from "John David Anglin" at Aug 8, 2008 02:33:06 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20080808192932.0E0354EBE@hiauly1.hia.nrc.ca> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00219.txt.bz2 > [New process 20069] > [New process 20069, lwp 7087826] [New process 2692, lwp 7130128] [process 2692, lwp 7130128 exited] Breakpoint 1, perror_with_name (string=0x0) at ../../src/gdb/utils.c:847 847 err = safe_strerror (errno); (gdb) frame 1 #1 0x000c9b08 in inf_ttrace_resume_callback (info=0x2319b0, arg=0x7b019048) at ../../src/gdb/inf-ttrace.c:813 813 perror_with_name (("ttrace")); (gdb) p *(struct thread_info *)($r3 - 4) $21 = {next = 0x4007bc90, ptid = {pid = 2692, lwp = 7130128, tid = 0}, num = 2, executing_ = 0, state_ = 1, refcount = 0, prev_pc = 0, step_resume_breakpoint = 0x0, step_range_start = 0, step_range_end = 0, step_frame_id = {stack_addr = 0, code_addr = 0, special_addr = 0, stack_addr_p = 0, code_addr_p = 0, special_addr_p = 0}, current_line = 0, current_symtab = 0x0, trap_expected = 0, stepping_over_breakpoint = 0, stepping_through_solib_after_catch = 0, stepping_through_solib_catchpoints = 0x0, continuations = 0x0, intermediate_continuations = 0x0, proceed_to_finish = 0, step_over_calls = STEP_OVER_NONE, stop_step = 0, step_multi = 0, stop_signal = TARGET_SIGNAL_0, stop_bpstat = 0x0, private = 0x40076ac8} (gdb) p (int)THREAD_EXITED $22 = 2 Hmmm, the thread seems to have exited but state_ is still 1. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)