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?] Should break FILE:LINENO skip prologue?


On Thu, Jan 10, 2008 at 11:58:07AM +0100, Mark Kettenis wrote:
> If generating the right location information for -O0 is too difficult,
> perhaps the compiler should make life easier for itself and disable
> scheduling instructions into the prologue?

It already doesn't do that at -O0.

This part of the thread was about not skipping prologues at all; we
can't do that even with GCC, because the debug info says arguments
live in their stack slots.  But they're in different incoming
locations until the end of the prologue (registers or other stack
slots).  I think we'd want debug info which only specified the
incoming locations and the local stack slots, not every load into a
register - which is probably what GCC tries to produce.

-- 
Daniel Jacobowitz
CodeSourcery


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