This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: fix switching-to-new-thread message
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 11 Jan 2011 19:39:53 -0700
- Subject: FYI: fix switching-to-new-thread message
I am checking this in.
I noticed today that "thread 2" does not print a newline between the
[Switching to thread...] message and the start of the frame.
Built and regtested on x86-64 (compile farm).
Tom
2011-01-11 Tom Tromey <tromey@redhat.com>
* thread.c (do_captured_thread_select): Emit newline before
printing frame.
diff --git a/gdb/thread.c b/gdb/thread.c
index 99b4a93..d286f5b 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -1310,7 +1310,10 @@ do_captured_thread_select (struct ui_out *uiout, void *tidstr)
if (tp->state_ == THREAD_RUNNING)
ui_out_text (uiout, "(running)\n");
else
- print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC);
+ {
+ ui_out_text (uiout, "\n");
+ print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC);
+ }
/* Since the current thread may have changed, see if there is any
exited thread we can now delete. */