diff options
author | Andrew Burgess <aburgess@redhat.com> | 2025-08-21 13:13:59 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-08-26 21:48:34 +0100 |
commit | 43ed67a290e7679af86395d7b430a71f9e4449ee (patch) | |
tree | f44df8204da8cda967a4715cc27155c90291445b /r | |
parent | 2bd87cef85034dbf39a2817fba4f03828c0ca782 (diff) | |
download | binutils-43ed67a290e7679af86395d7b430a71f9e4449ee.zip binutils-43ed67a290e7679af86395d7b430a71f9e4449ee.tar.gz binutils-43ed67a290e7679af86395d7b430a71f9e4449ee.tar.bz2 |
gdb: more current_program_space->core_bfd() removal
This commit changes the signature of the gdbarch_core_info_proc method
so that it takes a 'struct bfd *' as an extra argument. This argument
is used to pass through the core file bfd pointer.
Now, in corelow.c, when calling gdbarch_core_info_proc, we can pass
through current_program_space->core_bfd() as the argument. Within the
implementations, (Linux and FreeBSD) we can use this argument rather
than having to access the core file through current_program_space.
This reduces the use of global state, which I think is a good thing.
There should be no user visible changes after this commit.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'r')
0 files changed, 0 insertions, 0 deletions