From patchwork Sun Dec 8 18:29:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 36594 Received: (qmail 101494 invoked by alias); 8 Dec 2019 18:30:25 -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 101240 invoked by uid 89); 8 Dec 2019 18:30:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.0 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=H*r:esmtpa, HX-Spam-Relays-External:esmtpa, H*RU:esmtpa X-HELO: gateway24.websitewelcome.com Received: from gateway24.websitewelcome.com (HELO gateway24.websitewelcome.com) (192.185.51.31) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 08 Dec 2019 18:30:13 +0000 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 1779A2195 for ; Sun, 8 Dec 2019 12:30:04 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id e1JkiY9IliJ43e1JkizFCQ; Sun, 08 Dec 2019 12:30:04 -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=94FYyT/9f6cRtDABC0SFVqyJjXHM97tdJYSCD6bbFMs=; b=SfP56tvBCpBF3ZFTtZ7hR+gYiT 5Bjy2l4W0AUe/g3JPr9Ad6TGqAr606Duomym2Ok7zKEvrJZrFFCU1NFjwbg8hMKMmyy4nHMyIS8vJ kwv1d6UlUaA9FRBiudrvgNihv; Received: from 75-166-123-50.hlrn.qwest.net ([75.166.123.50]:53620 helo=bapiya.Home) by box5379.bluehost.com with esmtpa (Exim 4.92) (envelope-from ) id 1ie1Jj-0045Dk-TN; Sun, 08 Dec 2019 11:30:03 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 16/55] Make pascal_object_print_value_fields static Date: Sun, 8 Dec 2019 11:29:19 -0700 Message-Id: <20191208182958.10181-17-tom@tromey.com> In-Reply-To: <20191208182958.10181-1-tom@tromey.com> References: <20191208182958.10181-1-tom@tromey.com> pascal_object_print_value_fields is only needed in p-valprint.c, so make it static. gdb/ChangeLog 2019-12-08 Tom Tromey * p-valprint.c (pascal_object_print_value_fields): Now static. * p-lang.h (pascal_object_print_value_fields): Don't declare. Change-Id: I0000d3b5fda2fb27b5808779bff2464e56f8621a --- gdb/ChangeLog | 5 +++++ gdb/p-lang.h | 8 -------- gdb/p-valprint.c | 10 +++++++++- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gdb/p-lang.h b/gdb/p-lang.h index 7d1d285bd94..1376bc2c94a 100644 --- a/gdb/p-lang.h +++ b/gdb/p-lang.h @@ -72,14 +72,6 @@ extern void pascal_type_print_varspec_prefix (struct type *, struct ui_file *, int, int, const struct type_print_options *); -extern void pascal_object_print_value_fields (struct type *, const gdb_byte *, - LONGEST, - CORE_ADDR, struct ui_file *, - int, - struct value *, - const struct value_print_options *, - struct type **, int); - extern int pascal_object_is_vtbl_ptr_type (struct type *); extern int pascal_object_is_vtbl_member (struct type *); diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 198d6b6c3e4..9420509066b 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -42,6 +42,14 @@ #include "cli/cli-style.h" +static void pascal_object_print_value_fields (struct type *, const gdb_byte *, + LONGEST, + CORE_ADDR, struct ui_file *, + int, + struct value *, + const struct value_print_options *, + struct type **, int); + /* Decorations for Pascal. */ static const struct generic_val_print_decorations p_decorations = @@ -529,7 +537,7 @@ pascal_object_is_vtbl_member (struct type *type) DONT_PRINT is an array of baseclass types that we should not print, or zero if called from top level. */ -void +static void pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, LONGEST offset, CORE_ADDR address, struct ui_file *stream,