From 74e39223b5e7cb645720a81f2c6ec25f9f40998c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 28 Jul 2024 23:25:57 -0400 Subject: gdb: pass inferior to target_current_description Make the current inferior reference bubble up one level. Change-Id: I441f954877749dc5a861ab03e881b529dafc2efd --- gdb/arch-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/arch-utils.c') diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 3247c36..9110f0e 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -595,7 +595,7 @@ gdbarch_update_p (struct gdbarch_info info) /* Check for the current target description. */ if (info.target_desc == NULL) - info.target_desc = target_current_description (); + info.target_desc = target_current_description (current_inferior ()); new_gdbarch = gdbarch_find_by_info (info); @@ -654,7 +654,7 @@ set_gdbarch_from_file (bfd *abfd) struct gdbarch *gdbarch; info.abfd = abfd; - info.target_desc = target_current_description (); + info.target_desc = target_current_description (current_inferior ()); gdbarch = gdbarch_find_by_info (info); if (gdbarch == NULL) -- cgit v1.1