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 Wed, Jan 09, 2008 at 01:04:55PM -0800, Michael Snyder wrote:
> Don't forget my argument about prologue initializations.
> Sometimes those involve function calls.  A user might very
> well want to stop AFTER some of those function calls, but
> BEFORE others, so he could step into them.
> 
> Especially in C++, where some of them would be constructors.

This argument doesn't apply; local variable initializations are not
part of the function prologue.  GCC will attribute them to the lines
on which they were written.  Only setting up the stack frame and
saving incoming arguments to the stack are part of the prologue.

-- 
Daniel Jacobowitz
CodeSourcery


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