diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-03-24 15:39:11 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-03-24 15:39:11 -0400 |
commit | 41c0087ba5f1e88395be42ae33c3f7b9b2dd6745 (patch) | |
tree | 85ddd9df7797a779350d4852daf9db78ff6107a5 /gdb | |
parent | bf0aecce6ebc7182b0cfd36773bca622e2a19c3e (diff) | |
download | gdb-41c0087ba5f1e88395be42ae33c3f7b9b2dd6745.zip gdb-41c0087ba5f1e88395be42ae33c3f7b9b2dd6745.tar.gz gdb-41c0087ba5f1e88395be42ae33c3f7b9b2dd6745.tar.bz2 |
gdb: make gdbarch_data_registry static
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
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbarch.c | 2 | ||||
-rwxr-xr-x | gdb/gdbarch.sh | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa74cb9..7b867f0 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 23509ba..208cf4b 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 6c36130..43e5134 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, }; |