diff options
author | Andrew Burgess <aburgess@redhat.com> | 2025-08-27 11:49:24 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-09-04 16:43:19 +0100 |
commit | a45b16f16e8eb4b24d55b1d83a24524cd4b042f1 (patch) | |
tree | 7d5c0b908aa518518d9ed56961e942a538e2c3b0 /gdb/alpha-nat.c | |
parent | a839a42bcd865707b25a3b787858d019a41b8b8e (diff) | |
download | gdb-a45b16f16e8eb4b24d55b1d83a24524cd4b042f1.zip gdb-a45b16f16e8eb4b24d55b1d83a24524cd4b042f1.tar.gz gdb-a45b16f16e8eb4b24d55b1d83a24524cd4b042f1.tar.bz2 |
gdb: pass core file to gdbarch_core_xfer_siginfo
Another patch that aims to remove 'current_program_space->core_bfd ()'
from GDB. This time I'm passing the core file BFD as an argument to
the gdbarch method gdbarch_core_xfer_siginfo.
In corelow.c the core file is being passed, this does introduce a new
instance of 'current_program_space->core_bfd ()', but this is OK. My
long term plan is to move the core bfd into core_target, in which case
the call to gdbarch_core_xfer_siginfo will have access to the core bfd
as a member variable.
For now though, this patch moves the accesses via global state up the
call stack, and consolidates the two calls from fbsd-tdep.c and
linux-tdep.c into the one call in corelow.c.
There should be no user visible changes after this commit.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/alpha-nat.c')
0 files changed, 0 insertions, 0 deletions