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: [RFC/RFA/i386] pb reading insns if breakpoints still inserted


On Fri, Apr 28, 2006 at 11:09:19PM +0200, Mark Kettenis wrote:
> But if we don't have debug information, what's the point in trying to
> skip the prologue in order to put a breakpoint on ... eh what exactly?
> Isn't it better to just punt prologue skipping in that case and place
> the breakpoint on the first instruction of the code?

Yes, I agree.

I'd like to note, though, that the way we skip prologues based on debug
information is completely wrong.  It only works with GCC and with other
compilers that have chosen to be bug-compatible with GCC.  DWARF does
support a "this is the end of the prologue" flag, but I don't know if
GCC emits it, and I'm pretty positive GDB doesn't know how to consume
it.

[GCC just emits a line note before and after the prologue - even if
they're on the same line.]

-- 
Daniel Jacobowitz
CodeSourcery


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