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

Daniel Berlin dberlin@redhat.com
Sat Mar 17 11:59:00 GMT 2001


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



More information about the Gdb-patches mailing list