From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30776 invoked by alias); 6 May 2008 01:38:50 -0000 Received: (qmail 30762 invoked by uid 22791); 6 May 2008 01:38:49 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc2-s11.bay0.hotmail.com (HELO bay0-omc2-s11.bay0.hotmail.com) (65.54.246.147) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 May 2008 01:38:29 +0000 Received: from BL2PRD0001HT001.prod.exchangelabs.com ([65.55.174.125]) by bay0-omc2-s11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 5 May 2008 18:38:28 -0700 Received: from BL2PRD0001MB022.prod.exchangelabs.com ([169.254.6.143]) by BL2PRD0001HT001.prod.exchangelabs.com ([169.254.176.143]) with mapi; Mon, 5 May 2008 18:38:15 -0700 From: Marc Khouzam To: "gdb@sourceware.org" Date: Tue, 06 May 2008 01:38:00 -0000 Subject: Multi-Process Mode for gdbserver X-MS-Thread-Id: aHVPPjRrs0uN+bc8l2aXlw== Message-ID: <803815B8DB5071438A047CB187B98880F95109F3DD@BL2PRD0001MB022.prod.exchangelabs.com> Accept-Language: en-US Content-Language: en-CA acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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-05/txt/msg00046.txt.bz2 Hi, I'm interested in using the Multi-Process Mode for gdbserver to attach and = detach from running processes. >From what I read in the doc, which I then tried, I can start a gdbserver w= ith --multi and I can have gdb tell it to attach/detach to a running process. This is really cool. >From what I gather though, there is no monitor command to list the process= es that are available where gdbserver is running. Is there a good reason for that, or is it just= that no one has had the time? If it is a missing patch, then I am willing to look into implementing this.= However, I wonder how to deal with the fact that such a function is OS dependent. Personally, I want it = for Linux. Is it ok to try to enhance gdbserver to have "monitor list processes" but only for L= inux? And if so, it is ok to simply have gdbserver call ps? Thanks for the expertise Marc