curious check in dwarf2_gen_line_info()

Daniel Jacobowitz drow@false.org
Wed Dec 29 19:01:00 GMT 2004


On Wed, Dec 29, 2004 at 10:50:55AM -0800, David Mosberger wrote:
> >>>>> On Wed, 29 Dec 2004 10:33:32 -0800, Geoff Keating <geoffk@geoffk.org> said:
> 
>   Geoff> The overhead of the duplicates should not be very significant
>   Geoff> (compared to the information that is required), because the
>   Geoff> compiler should already be suppressing duplicate line
>   Geoff> information except where it is needed.
> 
> Ah, there are multiple issues here: you're assuming that
> dwarf2_gen_line_info() is only called once per loc-directive, but this
> isn't true for tc-ia64.c, which calls dwarf2_gen_line_info() for each
> instruction, no matter what.
> 
> I'll check gdb to see if it gets any new failures on ia64 with the
> duplicate line info removed.

It almost certainly will.  The issue hasn't been fixed; Geoff described
the problems pretty accurately.

[For dwarf2 we should be emitting explicit prologue end markers, and
THEN the hack could go away.  But that's a whole other story.]

-- 
Daniel Jacobowitz



More information about the Binutils mailing list