From 6fdf95ae532c61263e19e2036cfe3057bb928385 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 5 Feb 2024 16:13:58 -0500 Subject: 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 --- gdb/i386-fbsd-tdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/i386-fbsd-tdep.c') 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. */ -- cgit v1.1