This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Fix gdb/669 (fwd)
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: msnyder at redhat dot com
- Cc: Keith Seitz <keiths at redhat dot com>, msnyder at redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Tue, 5 Nov 2002 17:38:07 -0500
- Subject: Re: [RFA] Fix gdb/669 (fwd)
- References: <Pine.LNX.4.44.0210071103060.3979-100000@valrhona.uglyboxes.com><15797.46515.614922.970446@localhost.redhat.com>
Elena Zannoni writes:
> Keith Seitz writes:
> > Ping.
> >
> > ---------- Forwarded message ----------
> > Date: Tue, 24 Sep 2002 12:42:24 -0700 (PDT)
> > From: Keith Seitz <keiths@redhat.com>
> > To: gdb-patches@sources.redhat.com
> > Subject: [RFA] Fix gdb/669
> >
> > Hi,
> >
> > This patch fixes gdb/669, which demonstrates that the MI command
> > "thread-list-ids" and the console's "info thread" get out of sync.
> >
> > This is caused by the MI command not following the console command, which
> > prunes old threads and looks for new ones when it is called.
> >
>
>
> Even though this code is in thread.c, which is Michael's domain, it is
> only used from mi. It looks right to me.
>
> Michael?
>
Can this be committed? It is a piece of the MI branch merge.
> Elena
>
>
> > Keith
> >
> > ChangeLog
> > 2002-09-05 Keith Seitz <keiths@redhat.com>
> >
> > * thread.c (do_captured_list_thread_ids): Call prune_threads and
> > target_find_new_threads.
> >
> > Patch
> > 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 24 Sep 2002 19:32:40 -0000
> > *************** do_captured_list_thread_ids (struct ui_o
> > *** 262,267 ****
> > --- 262,269 ----
> > struct thread_info *tp;
> > int num = 0;
> >
> > + prune_threads ();
> > + target_find_new_threads ();
> > ui_out_tuple_begin (uiout, "thread-ids");
> >
> > for (tp = thread_list; tp; tp = tp->next)
> >