gdb: change linux gdbarch data from post to pre-init
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 4 Dec 2020 21:43:56 +0000 (16:43 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 4 Dec 2020 21:43:56 +0000 (16:43 -0500)
commitd965505887c27e8b1d6e84cb06c2b131aad08093
tree23c84518bed4de4907a17c7bbaba400110f28ac2
parent187b041e2514827b9d86190ed2471c4c7a352874
gdb: change linux gdbarch data from post to pre-init

The following patch will need to fill a field in linux_gdbarch_data
while the gdbarch is being built.  linux_gdbarch_data is currently
allocated as a post-init gdbarch data, meaning it's not possible to fill
it before the gdbarch is completely initialized.  Change it to a
pre-init gdbarch data to allow this.

The init_linux_gdbarch_data function doesn't use the created gdbarch,
it only allocates the linux_gdbarch_data structure on the gdbarch's
obstack, so the change is trivial.

gdb/ChangeLog:

* linux-tdep.c (init_linux_gdbarch_data): Change parameter to
obkstack.
(_initialize_linux_tdep): Register pre-init gdb data instead of
post-init.

Change-Id: If35ce91b6bb5435680d43b9268d811d95661644f
gdb/ChangeLog
gdb/linux-tdep.c
This page took 0.023997 seconds and 4 git commands to generate.