From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19890 invoked by alias); 4 Dec 2001 23:27:00 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19626 invoked from network); 4 Dec 2001 23:25:41 -0000 Received: from unknown (HELO geoffk.org) (205.180.231.50) by sources.redhat.com with SMTP; 4 Dec 2001 23:25:41 -0000 Received: (from geoffk@localhost) by geoffk.org (8.9.3/8.9.3) id PAA32650; Tue, 4 Dec 2001 15:25:24 -0800 Date: Tue, 04 Dec 2001 15:27:00 -0000 Message-Id: <200112042325.PAA32650@geoffk.org> X-Authentication-Warning: localhost.cygnus.com: geoffk set sender to geoffk@geoffk.org using -f From: Geoff Keating To: neil@daikokuya.demon.co.uk CC: gcc@gcc.gnu.org In-reply-to: <20011204223213.A23655@daikokuya.demon.co.uk> (message from Neil Booth on Tue, 4 Dec 2001 22:32:13 +0000) Subject: Re: problems debugging gcc Reply-to: Geoff Keating References: <200112041958.LAA06265@kankakee.wrs.com> <20011204203454.A20475@daikokuya.demon.co.uk> <20011204223213.A23655@daikokuya.demon.co.uk> X-SW-Source: 2001-12/txt/msg00189.txt.bz2 > Date: Tue, 4 Dec 2001 22:32:13 +0000 > From: Neil Booth > Cc: gcc@gcc.gnu.org > Content-Disposition: inline > User-Agent: Mutt/1.3.23i > > Geoff Keating wrote:- > > > There's a bug in cc1: it doesn't store file names for statements, only > > line numbers, and so debugging information for functions that have > > lines from multiple files is often wrong. > > Hmm, sounds like it's non-trivial to fix and been around forever then. > > It also sounds like a good reason to use the line maps and drop the > mucking about with global filename and line number variables, no? Oh, it's not related to the global variables. If it was just that, I'd have fixed it a month ago. Look at STMT_LINENO in c-common.h, and notice there is no STMT_FILENAME nor any easy way to add one. It started around when functions-as-trees was added. -- - Geoffrey Keating