From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Berlin To: gdb-patches@sources.redhat.com Subject: Re: [RFA] testsuite/gdb.c++/ref-types.exp: use runto Date: Sat, 17 Mar 2001 11:59:00 -0000 Message-id: References: <200103162249.OAA06726@bosch.cygnus.com> <20010316215907.A3607@redhat.com> X-SW-Source: 2001-03/msg00320.html Christopher Faylor 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