public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/3] gdb: make fprint_target_auxv static
Date: Thu, 29 Sep 2022 16:43:53 -0400	[thread overview]
Message-ID: <20220929204354.751741-3-simon.marchi@polymtl.ca> (raw)
In-Reply-To: <20220929204354.751741-1-simon.marchi@polymtl.ca>

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


  parent reply	other threads:[~2022-09-29 20:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-29 20:43 [PATCH 0/3] Small cleanups in auxv.c Simon Marchi
2022-09-29 20:43 ` [PATCH 1/3] gdb: constify auxv parse functions Simon Marchi
2022-09-29 20:43 ` Simon Marchi [this message]
2022-09-29 20:43 ` [PATCH 3/3] gdb: make target_auxv_parse static and rename Simon Marchi
2022-09-29 21:31 ` [PATCH 0/3] Small cleanups in auxv.c John Baldwin
2022-09-29 23:57   ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220929204354.751741-3-simon.marchi@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).