2007-03-19 Denis Pilat * thread.c (do_captured_thread_select): print_stack_frame use LOC_AND_ADDRESS for mi output. Index: thread.c =================================================================== RCS file: /cvs/src/src/gdb/thread.c,v retrieving revision 1.51 diff -u -p -r1.51 thread.c --- thread.c 28 Feb 2007 17:35:01 -0000 1.51 +++ thread.c 19 Mar 2007 13:27:53 -0000 @@ -700,7 +700,12 @@ do_captured_thread_select (struct ui_out ui_out_text (uiout, target_tid_to_str (inferior_ptid)); ui_out_text (uiout, ")]"); - print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC); + /* For mi, we just print location. */ + if (ui_out_is_mi_like_p (uiout)) + print_stack_frame (get_selected_frame (NULL), 1, LOC_AND_ADDRESS); + else + print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC); + return GDB_RC_OK; }