Regressions problem (200 failures)
Peter.Schauer
Peter.Schauer@regent.e-technik.tu-muenchen.de
Thu Mar 2 03:43:00 GMT 2000
> 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
More information about the Gdb
mailing list