aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-descriptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target-descriptions.c')
-rw-r--r--gdb/target-descriptions.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 248edd5..c0e798a 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -553,11 +553,13 @@ target_find_description (void)
/* Next try to read the description from the current target using
target objects. */
if (current_target_desc == NULL)
- current_target_desc = target_read_description_xml (current_top_target ());
+ current_target_desc = target_read_description_xml
+ (current_inferior ()->top_target ());
/* If that failed try a target-specific hook. */
if (current_target_desc == NULL)
- current_target_desc = target_read_description (current_top_target ());
+ current_target_desc = target_read_description
+ (current_inferior ()->top_target ());
/* If a non-NULL description was returned, then update the current
architecture. */