+2002-08-28 Keith Seitz <keiths@redhat.com>
+
+ * thread.c (do_captured_thread_select): Add context-changed
+ notification.
+ * infrun.c (handle_inferior_event): Remove context-changed
+ notification. The stop result already has this information.
+
+ * thread.c (do_captured_list_thread_ids): Use ui_out_list_begin/end
+ instead of ui_out_tuple_begin/end.
+
2002-08-22 Keith Seitz <keiths@redhat.com>
* breakpoint.c (internal_breakpoint_number): Revert 2002-06-18 change.
struct thread_info *tp;
int num = 0;
- ui_out_tuple_begin (uiout, "thread-ids");
+ ui_out_list_begin (uiout, "thread-ids");
for (tp = thread_list; tp; tp = tp->next)
{
ui_out_field_int (uiout, "thread-id", tp->num);
}
- ui_out_tuple_end (uiout);
+ ui_out_list_end (uiout);
ui_out_field_int (uiout, "number-of-threads", num);
return GDB_RC_OK;
}
void *tidstr)
{
int num;
+ ptid_t old_ptid;
struct thread_info *tp;
num = value_as_long (parse_and_eval (tidstr));
+ old_ptid = inferior_ptid;
tp = find_thread_id (num);
if (!tp)
ui_out_text (uiout, ")]");
print_stack_frame (selected_frame, frame_relative_level (selected_frame), 1);
+
+ if (!ptid_equal (old_ptid, inferior_ptid))
+ context_changed_event (pid_to_thread_id (inferior_ptid));
+
return GDB_RC_OK;
}