public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed] gdb: remove get_gdb_program_name
Date: Thu, 25 Jan 2024 14:44:47 -0500	[thread overview]
Message-ID: <20240125194449.289275-1-simon.marchi@efficios.com> (raw)

Nothing uses it.

Change-Id: I7a3fbf38e290a5147fbcbf175bc34f01dfb335c7
---
 gdb/main.c | 7 -------
 gdb/main.h | 6 ------
 2 files changed, 13 deletions(-)

diff --git a/gdb/main.c b/gdb/main.c
index 6659ab619f7a..2dc76756e986 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -97,13 +97,6 @@ int return_child_result_value = -1;
 /* GDB as it has been invoked from the command line (i.e. argv[0]).  */
 static char *gdb_program_name;
 
-/* Return read only pointer to GDB_PROGRAM_NAME.  */
-const char *
-get_gdb_program_name (void)
-{
-  return gdb_program_name;
-}
-
 static void print_gdb_help (struct ui_file *);
 
 /* Set the data-directory parameter to NEW_DATADIR.
diff --git a/gdb/main.h b/gdb/main.h
index 328638158c01..fa267786d891 100644
--- a/gdb/main.h
+++ b/gdb/main.h
@@ -44,12 +44,6 @@ extern std::string interpreter_p;
    return value is in malloc'ed storage.  */
 extern char *windows_get_absolute_argv0 (const char *argv0);
 
-/* Return read only pointer to the name of gdb as it was invoked.  This
-   might have been expanded to an absolute path if required by the
-   platform.  Could return NULL if called before gdb has had a chance to
-   parse the argv array.  */
-extern const char *get_gdb_program_name (void);
-
 extern void set_gdb_data_directory (const char *new_data_dir);
 
 #endif

base-commit: eb12b17047e25eac70ba32b79144216e86d3baa4
-- 
2.43.0


                 reply	other threads:[~2024-01-25 19:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20240125194449.289275-1-simon.marchi@efficios.com \
    --to=simon.marchi@efficios.com \
    --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).