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, 2008-01-10 at 21:35 -0800, Joel Brobecker wrote:
> >   1.  int
> >   2.  foo (int i, double d)
> >   3.  {
> >   4.    int j = 42;
> >   5.    float f = sin(d);
> >   6.    ...
> >   7.  }
> > 
> > the first assignment may be scheduled into the prologue, but the
> > second almost certainly won't.
> 
> The prologue should never include any of the local variable assignments.
> 
> At -O0, the situation is very clear and easy, as the variable
> assignments are always past the prologue. Each variable assignment
> has its own line and you can break on them as usual. My patches
> will not affect that.

Are you sure that's true in general, on all architectures?
I can certainly remember seeing assignment instructions
intermixed with prologue instructions in the past, but I
can't say at what optimization level or on what architecture.




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