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/target-descriptions.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gdb/target-descriptions.h') diff --git a/gdb/target-descriptions.h b/gdb/target-descriptions.h index 54c1f23..d708dbd 100644 --- a/gdb/target-descriptions.h +++ b/gdb/target-descriptions.h @@ -39,11 +39,10 @@ void target_find_description (void); void target_clear_description (void); -/* Return the current inferior's target description. This should only - be used by gdbarch initialization code; most access should be - through an existing gdbarch. */ +/* Return INF's target description. This should only be used by gdbarch + initialization code; most access should be through an existing gdbarch. */ -const struct target_desc *target_current_description (void); +const target_desc *target_current_description (inferior *inf); /* Record architecture-specific functions to call for pseudo-register support. If tdesc_use_registers is called and gdbarch_num_pseudo_regs -- cgit v1.1