This is the mail archive of the gdb@sourceware.cygnus.com 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]

Re: Regressions problem (200 failures)


> > I think GCC shouldn't put out any line notes for the prologue in the
> > first place.  That's what's causing the problem, indirectly.  Does GDB
> > require a line note in the prologue, or can we wait until the first
> > bit of real code?
> 
> GDB expects the first line number to be for the real code (unless
> something has changed, or I'm remembering it wrong or something - I
> didn't actually play around with the test cases).

In case it isn't obvious:

What is `real code' ?
The initialization of local variables, is it considered part of the
prologue or real code ?

For practical debugging purposes (especially C++), the line number
information (and thus the breakpoint) has to be put before the initialization
code for local variables, so that we can debug object initialization.

-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de

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