This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problems debugging gcc
> Date: Tue, 4 Dec 2001 22:32:13 +0000
> From: Neil Booth <neil@daikokuya.demon.co.uk>
> 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 <geoffk@geoffk.org> <geoffk@redhat.com>