From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2809 invoked by alias); 25 Sep 2006 15:31:25 -0000 Received: (qmail 2800 invoked by uid 22791); 25 Sep 2006 15:31:25 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 25 Sep 2006 15:31:20 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GRsQN-0002MY-Or; Mon, 25 Sep 2006 11:31:15 -0400 Date: Mon, 25 Sep 2006 15:31:00 -0000 From: Daniel Jacobowitz To: Alain Magloire Cc: Denis PILAT , nickrob@snap.net.nz, gdb@sourceware.org Subject: Re: info thread Message-ID: <20060925153115.GA8981@nevyn.them.org> Mail-Followup-To: Alain Magloire , Denis PILAT , nickrob@snap.net.nz, gdb@sourceware.org References: <3518719F06577C4F85DA618E3C37AB9106B12AA1@nimbus.ott.qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3518719F06577C4F85DA618E3C37AB9106B12AA1@nimbus.ott.qnx.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00143.txt.bz2 On Mon, Sep 25, 2006 at 11:24:44AM -0400, Alain Magloire wrote: > I have a gnat/pr on this way back, the reasons that CDT/Debug/MI was using > "info threads" instead of -thread-list-ids were: > - -thread-list-all-threads was crashing (probably fixed by now) > - -thread-list-all-threads was not showing the newly created thread, i.e. > the MI command was not doing the same job as "info threads" > > Note also some folks support thread names and add other information in the > "info threads" output. To accommodate, it would be nice to change the > output of this command to list of name=values pairs, something like: > [{name="id",value="1"}{name="name",value="Driver thread"}...] Um... really? (gdb) interpreter-exec mi -thread-list-all-threads ^error,msg="Undefined mi command: thread-list-all-threads (missing implementation)" I think you're thinking of -thread-list-ids. Ah, this is mi/674. It's also mi/1040. Both of which suggest *stopped :-) We could add the thread to -thread-list-ids, too. Something to keep in mind: the thread "extra info" is expensive to collect on some platforms, e.g. requires asking the remote stub for details on each individual thread. -- Daniel Jacobowitz CodeSourcery