From patchwork Sun Dec 8 18:29:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 36626 Received: (qmail 114289 invoked by alias); 8 Dec 2019 18:32:21 -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 111789 invoked by uid 89); 8 Dec 2019 18:32:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.4 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:928 X-HELO: gateway31.websitewelcome.com Received: from gateway31.websitewelcome.com (HELO gateway31.websitewelcome.com) (192.185.143.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 08 Dec 2019 18:32:00 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 3E0778A7B for ; Sun, 8 Dec 2019 12:30:02 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id e1JiipQioqNtve1JiiYrM8; Sun, 08 Dec 2019 12:30:02 -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=22LyvgZbeEdZR7/cmkAi4wy/eFDlo8p6RB1nDlSjVck=; b=KVtpY4pCizdQo4QlEnDXhaTKZ4 csQi3MC8H7rXgkgRKKjWvTiU4fQgI6U2Kv9Uiqi1Xh3lOkCj5imWB/TbdPC5a+py75jhdlJuwOdxS iNcbx2hhcov/Fd8/VElRSBr4q; Received: from 75-166-123-50.hlrn.qwest.net ([75.166.123.50]:53618 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1ie1Ji-00456j-0e; Sun, 08 Dec 2019 11:30:02 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 08/55] Use common_val_print in cp-valprint.c Date: Sun, 8 Dec 2019 11:29:11 -0700 Message-Id: <20191208182958.10181-9-tom@tromey.com> In-Reply-To: <20191208182958.10181-1-tom@tromey.com> References: <20191208182958.10181-1-tom@tromey.com> This changes a spot in cp-valprint.c to use common_val_print rather than val_print. gdb/ChangeLog 2019-12-08 Tom Tromey * cp-valprint.c (cp_print_static_field): Use common_val_print. Change-Id: Ib967e82c7b01409509adcd9c3bf5ae04a9541cff --- gdb/ChangeLog | 4 ++++ gdb/cp-valprint.c | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 0ec84f6799e..9a26ab322a4 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -684,11 +684,7 @@ cp_print_static_field (struct type *type, opts = *options; opts.deref_ref = 0; - val_print (type, - value_embedded_offset (val), - value_address (val), - stream, recurse, val, - &opts, current_language); + common_val_print (val, stream, recurse, &opts, current_language); } /* Find the field in *SELF, or its non-virtual base classes, with