This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/669: GDB/MI -thread-list-ids diffferent then "info threads"
- From: Keith Seitz <keiths at redhat dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 30 Aug 2002 18:48:01 -0000
- Subject: Re: gdb/669: GDB/MI -thread-list-ids diffferent then "info threads"
- Reply-to: Keith Seitz <keiths at redhat dot com>
The following reply was made to PR gdb/669; it has been noted by GNATS.
From: Keith Seitz <keiths@redhat.com>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: gdb/669: GDB/MI -thread-list-ids diffferent then "info threads"
Date: Fri, 30 Aug 2002 11:49:54 -0700 (PDT)
A shot in the dark: does this do anything to fix the problem?
(This patch also changes the tuple to a list.)
Keith
Index: thread.c
===================================================================
RCS file: /cvs/src/src/gdb/thread.c,v
retrieving revision 1.23
diff -p -r1.23 thread.c
*** thread.c 2 Aug 2002 20:51:21 -0000 1.23
--- thread.c 30 Aug 2002 18:45:09 -0000
*************** do_captured_list_thread_ids (struct ui_o
*** 262,268 ****
struct thread_info *tp;
int num = 0;
! ui_out_tuple_begin (uiout, "thread-ids");
for (tp = thread_list; tp; tp = tp->next)
{
--- 262,270 ----
struct thread_info *tp;
int num = 0;
! prune_threads ();
! target_find_new_threads ();
! ui_out_list_begin (uiout, "thread-ids");
for (tp = thread_list; tp; tp = tp->next)
{
*************** do_captured_list_thread_ids (struct ui_o
*** 270,276 ****
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;
}
--- 272,278 ----
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;
}