From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7544 invoked by alias); 20 Sep 2004 21:46:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7534 invoked from network); 20 Sep 2004 21:46:02 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 20 Sep 2004 21:46:02 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8KLk2um023362 for ; Mon, 20 Sep 2004 17:46:02 -0400 Received: from zenia.home.redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8KLk0r26451; Mon, 20 Sep 2004 17:46:00 -0400 To: Mark Kettenis Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH/RFA] Don't apply line-number tweaks for non-GCC compilers References: <200408141503.i7EF38O5004624@elgar.kettenis.dyndns.org> From: Jim Blandy Date: Mon, 20 Sep 2004 21:46:00 -0000 In-Reply-To: <200408141503.i7EF38O5004624@elgar.kettenis.dyndns.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-09/txt/msg00327.txt.bz2 Mark Kettenis writes: > The line-number tweaks we do for the sake of GCC 2.95.3 mess up the > line number info for non-GCC compilers that emit stabs. In particular > this makes it annoying to debug code using the Sun compilers on SPARC. > This patch attempts to fix that. Please refer to the comment in the > code for details. > > I deliberately did not remove the while line-number hack. In the end > that's what we should really do, but I still do most of my GDB work on > systems that have GCC 2.95.3 as their default compiler, and I really > like being able to run the testsuite on those platforms. > > OK? (Thanks for finding this, Andrew.) Is there any reason you're not testing processing_gcc_compilation, instead of checking the last N_FUN's desc?