From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id B661D385C335 for ; Thu, 29 Sep 2022 20:44:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B661D385C335 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 28TKhuXJ009550 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Sep 2022 16:44:00 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 28TKhuXJ009550 Received: from simark.localdomain (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 1CD581E112; Thu, 29 Sep 2022 16:43:56 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Subject: [PATCH 2/3] gdb: make fprint_target_auxv static Date: Thu, 29 Sep 2022 16:43:53 -0400 Message-Id: <20220929204354.751741-3-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220929204354.751741-1-simon.marchi@polymtl.ca> References: <20220929204354.751741-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 29 Sep 2022 20:43:56 +0000 X-Spam-Status: No, score=-3189.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2022 20:44:02 -0000 It's only used in auxv.c. Change-Id: I4992d9aae37b6631a074ab99bbab2f619725b642 --- gdb/auxv.c | 2 +- gdb/auxv.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gdb/auxv.c b/gdb/auxv.c index 63ee01c333c5..a9337d9f7ff4 100644 --- a/gdb/auxv.c +++ b/gdb/auxv.c @@ -546,7 +546,7 @@ default_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, /* Print the contents of the target's AUXV on the specified file. */ -int +static int fprint_target_auxv (struct ui_file *file, struct target_ops *ops) { struct gdbarch *gdbarch = target_gdbarch (); diff --git a/gdb/auxv.h b/gdb/auxv.h index 497318e87a04..2e8b2ab33fc6 100644 --- a/gdb/auxv.h +++ b/gdb/auxv.h @@ -74,9 +74,6 @@ extern void default_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, CORE_ADDR type, CORE_ADDR val); -/* Print the contents of the target's AUXV on the specified file. */ -extern int fprint_target_auxv (struct ui_file *file, struct target_ops *ops); - extern target_xfer_partial_ftype memory_xfer_auxv; -- 2.37.3