]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: make gdbarch_data_registry static
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 24 Mar 2021 19:39:11 +0000 (15:39 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 24 Mar 2021 19:39:11 +0000 (15:39 -0400)
This variable was made static in:

  6bd434d6caa4 ("gdb: make some variables static")

But I modified gdbarch.c instead of gdbarch.sh, so the change was
later reverted when gdbarch.c was re-generated.

Do it right this time.

gdb/ChangeLog:

* gdbarch.sh (gdbarch_data_registry): Make static.
* gdbarch.c: Re-generate.

Change-Id: I4048ba99a0cf47acd9da050934965db222fbd159

gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.sh

index aa74cb9a73d30e16313d86b842819fc8204e454b..7b867f014dba3ccceadbdc6ba293fb006bc5577b 100644 (file)
@@ -1,3 +1,8 @@
+2021-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * gdbarch.sh (gdbarch_data_registry): Make static.
+       * gdbarch.c: Re-generate.
+
 2021-03-24  Luis Machado  <luis.machado@linaro.org>
 
        * NEWS: Mention memory tagging changes.
index 23509ba0a9869a275459a5bc3b63f7bf4deade09..208cf4b5aaab4c37ae7785632a6d4fcef57621e2 100644 (file)
@@ -5451,7 +5451,7 @@ struct gdbarch_data_registry
   struct gdbarch_data_registration *registrations;
 };
 
-struct gdbarch_data_registry gdbarch_data_registry =
+static struct gdbarch_data_registry gdbarch_data_registry =
 {
   0, NULL,
 };
index 6c361307428de5bbb7a2c7e21e5e1c56b74ed631..43e51341f97b2271a17f80db2a2be89864acb671 100755 (executable)
@@ -2235,7 +2235,7 @@ struct gdbarch_data_registry
   struct gdbarch_data_registration *registrations;
 };
 
-struct gdbarch_data_registry gdbarch_data_registry =
+static struct gdbarch_data_registry gdbarch_data_registry =
 {
   0, NULL,
 };