[Ada/ravenscar] error during "continue" after task/thread switch
[deliverable/binutils-gdb.git] / gdb / top.c
index 8903a92983452bc5315538d6cbc6cb689bd67fae..d9d4639a1b6c28c1c1a23e891007fde7798cecf4 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -642,7 +642,12 @@ execute_command (const char *p, int from_tty)
        }
     }
 
-  check_frame_language_change ();
+  /* Only perform the frame-language-change check if the command
+     we just finished executing did not resume the inferior's execution.
+     If it did resume the inferior, we will do that check after
+     the inferior stopped.  */
+  if (has_stack_frames () && !is_running (inferior_ptid))
+    check_frame_language_change ();
 
   discard_cleanups (cleanup_if_error);
 }
This page took 0.024956 seconds and 4 git commands to generate.