gdb: remove unused argument from gdb_init
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 22 Apr 2021 15:46:23 +0000 (16:46 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 28 Apr 2021 08:56:19 +0000 (09:56 +0100)
The argument to gdb_init is not used, remove it.

There should be no user visible changes after this commit.

gdb/ChangeLog:

* main.c (captured_main_1): Don't pass argument to gdb_init.
* top.c (gdb_init): Remove unused argument, and add header
comment.
* top.h (gdb_init): Remove argument.

gdb/ChangeLog
gdb/main.c
gdb/top.c
gdb/top.h

index 6d7b341dc22ea25cd04977aa28cebeac25999967..c5db0041e525e6b5b1b60b41a4837c24a31bbd78 100644 (file)
@@ -1,3 +1,10 @@
+2021-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * main.c (captured_main_1): Don't pass argument to gdb_init.
+       * top.c (gdb_init): Remove unused argument, and add header
+       comment.
+       * top.h (gdb_init): Remove argument.
+
 2021-04-27  Luis Machado  <luis.machado@linaro.org>
 
        * psymtab.c (psymbol_functions::dump): Output newline.
index 60c08fb83ddc8b50e019ded9ad154269e76ee011..652e6f76fa0f5c10572386d1bb50d77a1f66387e 100644 (file)
@@ -1039,7 +1039,7 @@ captured_main_1 (struct captured_main_args *context)
   gdb::alternate_signal_stack signal_stack;
 
   /* Initialize all files.  */
-  gdb_init (gdb_program_name);
+  gdb_init ();
 
   /* Process early init files and early init options from the command line.  */
   if (!inhibit_gdbinit)
index ecd90a1433a74cbc28c68f539afe8b14335264a2..b58cd4facfcc25f0de80e145ed28f1639f0015a9 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -2360,8 +2360,10 @@ The second argument is the terminal the UI runs on."), &cmdlist);
   set_cmd_completer (c, interpreter_completer);
 }
 
+/* See top.h.  */
+
 void
-gdb_init (char *argv0)
+gdb_init ()
 {
   saved_command_line = xstrdup ("");
   previous_saved_command_line = xstrdup ("");
index 9438e52331b508e6f1fd6c6a1303699f4e86ab53..56bd06c698bee10d86710f78c7f84df7cac5e518 100644 (file)
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -271,7 +271,7 @@ extern void set_prompt (const char *s);
 extern int gdb_in_secondary_prompt_p (struct ui *ui);
 
 /* Perform _initialize initialization.  */
-extern void gdb_init (char *);
+extern void gdb_init ();
 
 /* For use by event-top.c.  */
 /* Variables from top.c.  */
This page took 0.044481 seconds and 4 git commands to generate.