Re: [RFA] Fix "break foo" when `foo's prologue ends before line table

Joel Brobecker
2009-05-11T21:19:07Z

> I would think so. What I show in my mail comes from "maint print
> symbols", so I have no reason to believe the lineinfo table does not
> reflect the COFF debug info.

You should be able to find another confirmation of this by looking
at the .s file. I don't know what assembler directive is used on
DJGPP to emit lines, but it's usually straightforward.

> Maybe. But the lines before that are just decorations, from the
> > Is it possible to patch this up in the coff line table reader?
>
> What, by inventing extra entries in the table? That could be
> dangerous, since we would be doing that without any clear idea of the
> code between 0x172c and 0x1748.

I don't think it matters what the code does, since otherwise you
would skip that code before inserting the breakpoint anyway.

> Even if we could, is that really better than the approach I suggested?

Not sure if this is better or not. The advantage of this approach is
that we protect other platforms from this form of debugging info -
one could argue that it's incomplete.

--
Joel