]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: remove most global core file accesses from fbsd-tdep.c
authorAndrew Burgess <aburgess@redhat.com>
Wed, 27 Aug 2025 18:40:30 +0000 (19:40 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 4 Sep 2025 15:44:34 +0000 (16:44 +0100)
commit88d6ee4c9afcf4e08b691e0d82d247d51ed70e8a
treeb8406504a035289b5228312eb80159188bb7ca83
parenta45b16f16e8eb4b24d55b1d83a24524cd4b042f1
gdb: remove most global core file accesses from fbsd-tdep.c

This commit removes many places in fbsd-tdep.c where we access the
current core file via current_program_space, and replaces these
accesses with a function argument that is passed in.

There are still two uses of 'current_program_space->core_bfd ()' in
the file, these will be addressed in future work (not in this series
though).

There should be no user visible changes after this commit.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/fbsd-tdep.c