From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24912 invoked by alias); 2 Apr 2007 08:51:27 -0000 Received: (qmail 24895 invoked by uid 22791); 2 Apr 2007 08:51:26 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 02 Apr 2007 09:51:21 +0100 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id 6FEFA187026; Mon, 2 Apr 2007 10:53:25 +0200 (CEST) From: "Pierre Muller" To: "'Joel Brobecker'" , "'Pedro Alves'" Cc: References: <20070209194107.GA3365@adacore.com> <20070227165003.GB31729@caradoc.them.org> <20070228201201.GH13140@adacore.com> <20070327162947.GC3452@caradoc.them.org> <20070329183609.GA3737@adacore.com> <460EC794.2080309@portugalmail.pt> <20070402070011.GC3963@adacore.com> In-Reply-To: <20070402070011.GC3963@adacore.com> Subject: RE: [RFA] Enhance stabs reader to better deal with forward references Date: Mon, 02 Apr 2007 08:51:00 -0000 Message-ID: <000001c77504$1a76a2d0$4f63e870$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us 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: 2007-04/txt/msg00007.txt.bz2 I made the same change to my local repository, due to the same problem, on the same target. The problem is that in the CVS tree, end_symtab function is called from within the read_ofile_symtab function after current_objfile is reset to nil. But due to your change, current_objfile is still=20 accessed inside dbx_lookup_type (stabsread.c) called by cleanup_undefined_types_noname (stabsread.c) called by cleanup_undefined_types (stabsread.c) called by end_symtab (buildsym.c). Hope this helps, Pierre -----Message d'origine----- De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] De la part de Joel Brobecker Envoy=E9=A0: Monday, April 02, 2007 9:00 AM =C0=A0: Pedro Alves Cc=A0: gdb-patches@sourceware.org Objet=A0: Re: [RFA] Enhance stabs reader to better deal with forward references Pedro, > Unfortunatelly, this patch broke Cygwin, which still uses stabs by default. >=20 > I am getting a SIGSEGV while issuing a breakpoint. Thanks for the report, and sorry about that. Unfortunately, I won't have much time in the next two or three days - I might be able to understand what is actually from the backtrace and your patch, but it might not be sufficient. And if you have an opportunity to investigate a bit more, that would be very much appreciated. In the meantime, feel free to back the patch out if necessary. --=20 Joel