From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32727 invoked by alias); 12 Nov 2008 20:51:54 -0000 Received: (qmail 32678 invoked by uid 22791); 12 Nov 2008 20:51:53 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Nov 2008 20:51:11 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L0Mg3-00067r-V0 for gdb@sources.redhat.com; Wed, 12 Nov 2008 20:51:03 +0000 Received: from 78.158.192.230 ([78.158.192.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2008 20:51:03 +0000 Received: from vladimir by 78.158.192.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2008 20:51:03 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: multi-proc: info processes? Date: Wed, 12 Nov 2008 20:51:00 -0000 Message-ID: References: <491B3695.5090300@vmware.com> <491B3A6E.5010208@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00093.txt.bz2 Stan Shebs wrote: > Michael Snyder wrote: >> Hey Pedro, >> >> For your multi-process work, are you planning anything >> analogous to the "info threads" command, eg. "info processes"? > Look at "info inferiors". It's just the processes (or whatever) that are > currently being controlled by GDB. >> >> What might that look like, in your model? Would it list, >> say, just the processes that gdb is attached to? Or would >> you want something analogous to "ps", that would list all >> of the processes that are available to be attached? > That would be somewhat ambitious, especially for a remote target - I > think you'd need a new packet just to return the list of processes... FWIW, MI '-list-thread-groups --available' will do just that. The patch itself needs some work, but should be posted this week. - Volodya