This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]