From patchwork Sun Dec 8 18:29:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 36634 Received: (qmail 27918 invoked by alias); 8 Dec 2019 18:51:16 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 27867 invoked by uid 89); 8 Dec 2019 18:51:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1080 X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.145.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 08 Dec 2019 18:51:14 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 94C5AC278 for ; Sun, 8 Dec 2019 12:30:12 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id e1JsiMglSHunhe1Jsiex6K; Sun, 08 Dec 2019 12:30:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mbxFhy1QjkZ3MBdLaW0kv/WfuKe2QAShMrLuN4Si0ng=; b=Z9PtX9RboGgR4ysO6NbIVSFD3E vBHaNyJ1I8tJIOKviuLoscREXhK08FqGO0ELgmWVcP8nkkv14E0VEqJKUCZFPvVE7RANaATVXqkbB ztPw57hSzoQ+3wM+jEv5JiRYV; Received: from 75-166-123-50.hlrn.qwest.net ([75.166.123.50]:53632 helo=bapiya.Home) by box5379.bluehost.com with esmtpa (Exim 4.92) (envelope-from ) id 1ie1Js-0045O4-Ck; Sun, 08 Dec 2019 11:30:12 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 50/55] Convert ada_val_print_ref to value-based API Date: Sun, 8 Dec 2019 11:29:53 -0700 Message-Id: <20191208182958.10181-51-tom@tromey.com> In-Reply-To: <20191208182958.10181-1-tom@tromey.com> References: <20191208182958.10181-1-tom@tromey.com> This converts ada_val_print_ref to the value-based API by using common_val_print rather than val_print. gdb/ChangeLog 2019-12-08 Tom Tromey * ada-valprint.c (ada_val_print_ref): Use common_val_print. Change-Id: I9f263131022e8ed759628fbd0dded464513c4762 --- gdb/ChangeLog | 4 ++++ gdb/ada-valprint.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index b5d113e1713..1764b70d1e1 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -1204,10 +1204,8 @@ ada_val_print_ref (struct type *type, const gdb_byte *valaddr, if (value_lazy (deref_val)) value_fetch_lazy (deref_val); - val_print (value_type (deref_val), - value_embedded_offset (deref_val), - value_address (deref_val), stream, recurse + 1, - deref_val, options, language_def (language_ada)); + common_val_print (deref_val, stream, recurse + 1, + options, language_def (language_ada)); } /* See the comment on ada_val_print. This function differs in that it