This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Regressions problem (200 failures)
- To: mark at codesourcery dot com (Mark Mitchell)
- 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 12:43:28 MET
- Cc: kingdon at redhat dot com, donnte at microsoft dot com, gdb at sourceware dot cygnus dot com
> Peter> For practical debugging purposes (especially C++), the line
> Peter> number information (and thus the breakpoint) has to be put
> Peter> before the initialization code for local variables, so that
> Peter> we can debug object initialization.
>
> But the line number itself doesn't have to indicate the `{'; it could
> indicate the next line, if that's what GDB wants. This is more
> possible than it used to be since the C++ front-end now puts out whole
> functions at once, rather than processing a statement at a time.
>
> Still, it's non-trivial.
From a pure user perspective (for now not considering implementation problems
with GCC or GDB), a breakpoint on the opening brace is not what I want,
as I will almost always have to step over it.
I'd expect a breakpoint on the first local variable that needs initalization,
or the first statement.
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de