diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-07-28 23:25:57 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 11:10:01 -0400 |
commit | 74e39223b5e7cb645720a81f2c6ec25f9f40998c (patch) | |
tree | e13012eaef0404681dee39c7faf52696cbc6c060 /gdb/target-descriptions.h | |
parent | ba96d2e697a35517c5ee6b6c20a2fe9a055f7e5f (diff) | |
download | binutils-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/target-descriptions.h')
-rw-r--r-- | gdb/target-descriptions.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 |