From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4308 invoked by alias); 5 Nov 2002 22:42:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4300 invoked from network); 5 Nov 2002 22:42:19 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Nov 2002 22:42:19 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id gA5MJkw02535 for ; Tue, 5 Nov 2002 17:19:46 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA5MgIf22797; Tue, 5 Nov 2002 17:42:18 -0500 Received: from localhost.redhat.com (IDENT:c0L9vlZH0Z6q3+Y6Ux4Oee53ClTNWAOz@tooth.toronto.redhat.com [172.16.14.29]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id gA5MgGT18738; Tue, 5 Nov 2002 17:42:16 -0500 Received: by localhost.redhat.com (Postfix, from userid 469) id DA7F3FF79; Tue, 5 Nov 2002 17:38:07 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15816.18511.514241.635599@localhost.redhat.com> Date: Tue, 05 Nov 2002 14:42:00 -0000 To: msnyder@redhat.com Cc: Keith Seitz , msnyder@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] Fix gdb/669 (fwd) In-Reply-To: <15797.46515.614922.970446@localhost.redhat.com> References: <15797.46515.614922.970446@localhost.redhat.com> X-SW-Source: 2002-11/txt/msg00072.txt.bz2 Elena Zannoni writes: > Keith Seitz writes: > > Ping. > > > > ---------- Forwarded message ---------- > > Date: Tue, 24 Sep 2002 12:42:24 -0700 (PDT) > > From: Keith Seitz > > 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 > > > > * 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) > >