From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32099 invoked by alias); 4 Dec 2001 21:18:11 -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 32007 invoked from network); 4 Dec 2001 21:18:08 -0000 Received: from unknown (HELO monkey.daikokuya.demon.co.uk) (158.152.184.26) by sources.redhat.com with SMTP; 4 Dec 2001 21:18:08 -0000 Received: from neil by monkey.daikokuya.demon.co.uk with local (Exim 3.33 #1 (Debian)) id 16BMxx-0005xH-00; Tue, 04 Dec 2001 21:19:01 +0000 Date: Tue, 04 Dec 2001 13:18:00 -0000 From: Neil Booth To: gcc-gnats@gcc.gnu.org, mike stump , danishsamad@yahoo.com, gcc@gcc.gnu.org Subject: Re: [c/4053] Re: problems debugging gcc Message-ID: <20011204211901.B22784@daikokuya.demon.co.uk> References: <200112041958.LAA06265@kankakee.wrs.com> <20011204203454.A20475@daikokuya.demon.co.uk> <20011204160845.A15532@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011204160845.A15532@nevyn.them.org> User-Agent: Mutt/1.3.23i X-SW-Source: 2001-12/txt/msg00168.txt.bz2 Daniel Jacobowitz wrote:- > Well, it isn't in the debug format code; the file information in the > RTL is wrong. And there's nothing obviously incorrect about the code > in cb_file_change... > > Aha, I think I see it. cb_file_change updates input_filename as it > reads. Compile the testcase from the PR with a breakpoint on > cb_file_change and a breakpoint on emit_line_note. If I had to guess, > I'd say that the problem was input_filename describing the state of the > lexer where it used to describe the state of the parser. In > c_expand_body is the line: > init_function_start (fndecl, input_filename, DECL_SOURCE_LINE (fndecl)); > > DECL_SOURCE_LINE is fine. input_filename isn't. Cool! This looks like it. I'll take a closer look and post a patch if it works. Thanks a lot for the detective work! Neil.