This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Regressions problem (200 failures)
- To: kingdon at redhat dot com (Jim Kingdon)
- Subject: Re: Regressions problem (200 failures)
- From: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>
- Date: Thu, 2 Mar 2000 11:10:06 MET
- Cc: mark at codesourcery dot com, donnte at microsoft dot com, gdb at sourceware dot cygnus dot com
> > 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