[pushed] gdb: make gdbarch_data_registry static

Message ID 20210324193937.47685-1-simon.marchi@polymtl.ca
State New
Headers show
Series
  • [pushed] gdb: make gdbarch_data_registry static
Related show

Commit Message

Keith Seitz via Gdb-patches March 24, 2021, 7:39 p.m.
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  | 5 +++++
 gdb/gdbarch.c  | 2 +-
 gdb/gdbarch.sh | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.30.1

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aa74cb9a73d3..7b867f014dba 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 23509ba0a986..208cf4b5aaab 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -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,
 };
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 6c361307428d..43e51341f97b 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -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,
 };