This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: accomodate recent ui_out change in thread.c
- To: gdb-patches at sources dot redhat dot com
- Subject: PATCH: accomodate recent ui_out change in thread.c
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Sat, 12 May 2001 00:06:06 -0500 (EST)
Obvious fix, given Andrew's recent change.
2001-05-11 Jim Blandy <jimb@redhat.com>
* thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
and ui_out_tuple_end instead of ui_out_list_begin and
ui_out_list_end.
Index: gdb/thread.c
===================================================================
RCS file: /cvs/src/src/gdb/thread.c,v
retrieving revision 1.14
diff -c -r1.14 thread.c
*** gdb/thread.c 2001/05/04 04:15:28 1.14
--- gdb/thread.c 2001/05/12 05:02:54
***************
*** 259,265 ****
struct thread_info *tp;
int num = 0;
! ui_out_list_begin (uiout, "thread-ids");
for (tp = thread_list; tp; tp = tp->next)
{
--- 259,265 ----
struct thread_info *tp;
int num = 0;
! ui_out_tuple_begin (uiout, "thread-ids");
for (tp = thread_list; tp; tp = tp->next)
{
***************
*** 267,273 ****
ui_out_field_int (uiout, "thread-id", tp->num);
}
! ui_out_list_end (uiout);
ui_out_field_int (uiout, "number-of-threads", num);
return GDB_RC_OK;
}
--- 267,273 ----
ui_out_field_int (uiout, "thread-id", tp->num);
}
! ui_out_tuple_end (uiout);
ui_out_field_int (uiout, "number-of-threads", num);
return GDB_RC_OK;
}