+annotate_frames_invalid (void)
+{
+ if (annotation_level == 2
+ && (!frames_invalid_emitted
+ || current_ui->prompt_state != PROMPT_BLOCKED))
+ {
+ /* If the inferior owns the terminal (e.g., we're resuming),
+ make sure to leave with the inferior still owning it. */
+ int was_inferior = target_terminal::is_inferior ();
+
+ target_terminal::ours_for_output ();
+
+ printf_unfiltered (("\n\032\032frames-invalid\n"));
+
+ if (was_inferior)
+ target_terminal::inferior ();
+
+ frames_invalid_emitted = 1;
+ }
+}
+
+void
+annotate_new_thread (void)