aboutsummaryrefslogtreecommitdiff
path: root/r
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2025-08-21 13:42:44 +0100
committerAndrew Burgess <aburgess@redhat.com>2025-08-26 21:48:35 +0100
commit1cb99f1398127070de3ad4b354101f640316075c (patch)
tree09b7b7a2164e6d09e5ff6677211f93d2bd7574c3 /r
parent43ed67a290e7679af86395d7b430a71f9e4449ee (diff)
downloadbinutils-1cb99f1398127070de3ad4b354101f640316075c.zip
binutils-1cb99f1398127070de3ad4b354101f640316075c.tar.gz
binutils-1cb99f1398127070de3ad4b354101f640316075c.tar.bz2
gdb: use existing argument more in rename_vmcore_idle_reg_sections
In corelow.c, in the function rename_vmcore_idle_reg_sections, the argument ABFD holds the core file bfd pointer. When this function is called current_program_space->core_bfd() is passed as the argument value. Within this function, we sometimes use the function argument, and sometimes access current_program_space->core_bfd() directly. This is confusing, and unnecessary. Lets not do that. I've renamed the argument to cbfd (for Core file BFD), and then updated the function to make use of this argument throughout. This reduces the number of accesses to global state, which is, I think, 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