From: Simon Marchi Date: Wed, 24 Mar 2021 19:39:11 +0000 (-0400) Subject: gdb: make gdbarch_data_registry static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41c0087ba5f1e88395be42ae33c3f7b9b2dd6745;p=binutils-gdb.git 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 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa74cb9a73d..7b867f014db 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-03-24 Simon Marchi + + * gdbarch.sh (gdbarch_data_registry): Make static. + * gdbarch.c: Re-generate. + 2021-03-24 Luis Machado * NEWS: Mention memory tagging changes. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 23509ba0a98..208cf4b5aaa 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 6c361307428..43e51341f97 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, };