target_stack -> current_top_target() throughout
[deliverable/binutils-gdb.git] / gdb / target-descriptions.c
index d4db8251dfd9074d6f3ce82d28326359d7f939bd..3d7aa2582e72815f98e77681fdec15acfb54ec43 100644 (file)
@@ -520,11 +520,11 @@ 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 (target_stack);
+    current_target_desc = target_read_description_xml (current_top_target ());
 
   /* If that failed try a target-specific hook.  */
   if (current_target_desc == NULL)
-    current_target_desc = target_read_description (target_stack);
+    current_target_desc = target_read_description (current_top_target ());
 
   /* If a non-NULL description was returned, then update the current
      architecture.  */
This page took 0.025854 seconds and 4 git commands to generate.