gdb: add declaration for _initialize_gdbarch in gdbarch.sh
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 21 Jan 2020 23:30:07 +0000 (18:30 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 21 Jan 2020 23:30:25 +0000 (18:30 -0500)
In commit

  gdb: add back declarations for _initialize functions
  6c2659886f7018fcca26ee0fc813bc9748fb8513

I wrongfully edited gdbarch.c, instead of editing gdbarch.sh and
re-generating gdbarch.c.  This patch fixes gdbarch.sh to add a
declaration for _initialize_gdbarch.  gdbarch.c is not changed, as the
output of gdbarch.sh now matches the current state of gdbarch.c.

gdb/ChangeLog:

* gdbarch.sh: Add declaration for _initialize_gdbarch.

gdb/ChangeLog
gdb/gdbarch.sh

index 3ed9150c4927534c60ce746c08111546ac193e9a..a407c04bf5e66ee4bfa5f0676e062f19b2c4880c 100644 (file)
@@ -1,3 +1,7 @@
+2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdbarch.sh: Add declaration for _initialize_gdbarch.
+
 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
 
        * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
index 0be3e88bb24701ddef03b59b9086dc11d504495b..58f6e1ebdca19cdd8d44f5fbaf18f8a020eceaf8 100755 (executable)
@@ -2600,8 +2600,9 @@ target_gdbarch (void)
   return current_inferior ()->gdbarch;
 }
 
+void _initialize_gdbarch ();
 void
-_initialize_gdbarch (void)
+_initialize_gdbarch ()
 {
   add_setshow_zuinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\\
 Set architecture debugging."), _("\\
This page took 0.027347 seconds and 4 git commands to generate.