This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Unreasonable expectation in gdb.base/break.exp
From: Daniel Jacobowitz <drow@false.org>
Date: Tue, 4 Apr 2006 19:12:25 -0400
> On Tue, Apr 04, 2006 at 04:09:01PM -0700, David S. Miller wrote:
> > The function name will be the inline function name, because
> > that is the function we will be "in", not main(). And that
> > could basically be anything.
>
> Well, no, it shouldn't be. It should be some day, but for the moment,
> gdb will report that you're in main no matter what's been inlined into
> it.
Indeed, you are right. I just rechecked exactly what happens
and it does report "main ( ... ) at stdlib.h:333"
So do you agree to change the check to just verify that we are
in fact in main()?
Thanks.