diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-09-02 09:42:51 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-09-02 09:42:51 +0000 |
commit | 8e361c09400d170794b33d14bf551c6ff2b61d28 (patch) | |
tree | fd0a5d9738525f11cec6d181d02e45e9995c5155 | |
parent | a5234a73c0f8fdab0293f1ce3aab87303d990b44 (diff) | |
download | gdb-8e361c09400d170794b33d14bf551c6ff2b61d28.tar.gz |
(handle_inferior_event): Take terminal.
-rw-r--r-- | gdb/infrun.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 8795100ddb1..511391388f5 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1693,6 +1693,13 @@ handle_inferior_event (struct execution_control_state *ecs) if (deprecated_context_hook) deprecated_context_hook (pid_to_thread_id (ecs->ptid)); + if (ui_out_is_mi_like_p (uiout)) + { + target_terminal_ours_for_output (); + printf_filtered ("[Switching to %s]\n", + target_pid_or_tid_to_str (inferior_ptid)); + } + flush_cached_frames (); } |