aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-07-28 23:25:57 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-08-12 11:10:01 -0400
commit74e39223b5e7cb645720a81f2c6ec25f9f40998c (patch)
treee13012eaef0404681dee39c7faf52696cbc6c060 /gdb/arch-utils.c
parentba96d2e697a35517c5ee6b6c20a2fe9a055f7e5f (diff)
downloadbinutils-74e39223b5e7cb645720a81f2c6ec25f9f40998c.zip
binutils-74e39223b5e7cb645720a81f2c6ec25f9f40998c.tar.gz
binutils-74e39223b5e7cb645720a81f2c6ec25f9f40998c.tar.bz2
gdb: pass inferior to target_current_description
Make the current inferior reference bubble up one level. Change-Id: I441f954877749dc5a861ab03e881b529dafc2efd
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c4
1 files changed, 2 insertions, 2 deletions
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)