From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8022 invoked by alias); 27 Feb 2004 03:24:48 -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 7952 invoked from network); 27 Feb 2004 03:24:47 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 27 Feb 2004 03:24:47 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AwYcJ-0006Rd-3Z; Thu, 26 Feb 2004 22:24:47 -0500 Date: Fri, 27 Feb 2004 03:24:00 -0000 From: Daniel Jacobowitz To: Albert Ho Cc: gdb@sources.redhat.com Subject: Re: gdb-6.0/gdb/gdbserver/target.c::set_desired_inferior() Message-ID: <20040227032447.GA24747@nevyn.them.org> Mail-Followup-To: Albert Ho , gdb@sources.redhat.com References: <403EB813.90408@intellambda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <403EB813.90408@intellambda.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00410.txt.bz2 On Thu, Feb 26, 2004 at 07:22:59PM -0800, Albert Ho wrote: > Should gdb-6.0/gdb/gdbserver/target.c::set_desired_inferior() always > succeed when dealing with 's' in main? > > I run into a problem when a thread is not found in > set_desired_inferior(), causing &status to become some bogus addr and > hence gdbserve segv. I've never seen this behavior before. Please explain how it happens; I don't see any way to get a bogus pointer unless your thread list is corrupted. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer