This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA] testsuite/gdb.c++/ref-types.exp: use runto


Christopher Faylor <cgf@redhat.com> writes:

> On Fri, Mar 16, 2001 at 02:49:29PM -0800, Michael Elizabeth Chastain wrote:
> >Daniel Berlin writes:
> >> Um, what exactly *should* it print?
> >
> >Ah, you are thinking about gdb, and I am thinking about the test suite.
> >
> >As long as gdb stays the way it is, the test suite should print "FAIL".
> >
> >gdb should print "20".  If it can't print "20", then it should print
> >"that's too hard for me" (perhaps refuse to call functions in classes with
> >virtual bases).
> 
> I thought that the point was that gdb didn't know that it was printing
> erroneous information.
> 
> cgf

It doesn't. He's suggesting we avoid letting you call any of the
virtual functions altogether, since it sometimes may be erroneous.

However, this would basically make C++ function calling useless.
--Dan


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