aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-fbsd-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-02-05 16:13:58 -0500
committerSimon Marchi <simon.marchi@efficios.com>2024-02-06 10:57:55 -0500
commit6fdf95ae532c61263e19e2036cfe3057bb928385 (patch)
tree9b043bfe97a012c33e3a9e0661e6c184ffedccf8 /gdb/i386-fbsd-tdep.c
parent0afc614c9938fbf5eda10a26c77d574c3c2f945a (diff)
downloadbinutils-6fdf95ae532c61263e19e2036cfe3057bb928385.zip
binutils-6fdf95ae532c61263e19e2036cfe3057bb928385.tar.gz
binutils-6fdf95ae532c61263e19e2036cfe3057bb928385.tar.bz2
gdb: remove core_bfd macro
The core_bfd macro hides a use of current_program_space. Remove it, so that we have the opportunity to get the program space from the context, if possible. I guess that the macro was introduced at some point to replace a global variable of the same name without changing all the uses. Change-Id: I971a65b29b5e5a5941f3cb7ea234547daa787268 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/i386-fbsd-tdep.c')
-rw-r--r--gdb/i386-fbsd-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c
index 266e9f2..ea1db3a 100644
--- a/gdb/i386-fbsd-tdep.c
+++ b/gdb/i386-fbsd-tdep.c
@@ -278,7 +278,8 @@ bool
i386_fbsd_core_read_x86_xsave_layout (struct gdbarch *gdbarch,
x86_xsave_layout &layout)
{
- return i386_fbsd_core_read_xsave_info (core_bfd, layout) != 0;
+ return i386_fbsd_core_read_xsave_info (current_program_space->core_bfd (),
+ layout) != 0;
}
/* Implement the core_read_description gdbarch method. */