This is the mail archive of the 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]
Other format: [Raw text]

Re: Unreasonable expectation in gdb.base/break.exp

On Tue, Apr 04, 2006 at 04:20:52PM -0700, David S. Miller wrote:
> From: Daniel Jacobowitz <>
> 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()?

Yes, I think so.  I've had this failure in different compilers before.

Eventually, we'll have to relax the name check too, when we start
reporting inlined functions properly.  But no one is working on that
right now; I had some patches to do it, but they were very buggy.

Daniel Jacobowitz

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