From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17150 invoked by alias); 20 May 2006 10:10:19 -0000 Received: (qmail 17140 invoked by uid 22791); 20 May 2006 10:10:19 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 20 May 2006 10:10:16 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 2C68B48CE49 for ; Sat, 20 May 2006 06:10:14 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12679-01-6 for ; Sat, 20 May 2006 06:10:14 -0400 (EDT) Received: by nile.gnat.com (Postfix, from userid 1345) id 084CF48CBAF; Sat, 20 May 2006 06:10:14 -0400 (EDT) From: Paul Hilfinger To: gdb-patches@sourceware.org Subject: Re: [RFA] Reference value coercion Reply-To: Hilfinger@adacore.com Message-Id: <20060520101014.084CF48CBAF@nile.gnat.com> Date: Sat, 20 May 2006 11:15:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00427.txt.bz2 Daniel, > The patch is not right for C++. It works for your test, because Child > has a single base class, and therefore the values of the Child& and > Parent& are the same; but in more complicated cases, this is no longer > true. The reference needs to be adjusted. Yeah. Somehow I knew it couldn't be that simple. > Also, there's some trouble with the test case: using "runto" restarts > the inferior, so runto_main followed by runto is redundant. I think > you just want to use runto. The step_for_stub thing is ancient, and > I don't think the testsuite works on systems that would require it any > more. Umm. Well then you might want to look at ref-types.exp, from which I stole most of this code. ... > Does the attached work for Ada? Yes, thanks, it does. PNH