]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove get_gdb_program_name
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 25 Jan 2024 19:35:06 +0000 (14:35 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 25 Jan 2024 19:43:54 +0000 (14:43 -0500)
Nothing uses it.

Change-Id: I7a3fbf38e290a5147fbcbf175bc34f01dfb335c7

gdb/main.c
gdb/main.h

index 6659ab619f7a4171aa7bf23f3463c45a11a0e418..2dc76756e9868a6655e7c76529c165ecaa09b7e7 100644 (file)
@@ -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.
index 328638158c01396ede66222ea4f040b634601c9f..fa267786d8919e2a119c43c5a4d2f45e1fd13d8c 100644 (file)
@@ -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