}
}
- 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);
}