From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21054 invoked by alias); 27 Jul 2010 19:55:54 -0000 Received: (qmail 21046 invoked by uid 22791); 27 Jul 2010 19:55:53 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_ILLEGAL_IP X-Spam-Check-By: sourceware.org Received: from imr3.ericy.com (HELO imr3.ericy.com) (198.24.6.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Jul 2010 19:55:46 +0000 Received: from eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) by imr3.ericy.com (8.13.8/8.13.8) with ESMTP id o6RJthlE017190 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 27 Jul 2010 14:55:43 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.134]) by eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) with mapi; Tue, 27 Jul 2010 15:55:43 -0400 From: Marc Khouzam To: "'gdb@sourceware.org'" Date: Tue, 27 Jul 2010 19:55:00 -0000 Subject: Command for number of cores Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2010-07/txt/msg00104.txt.bz2 Hi, I need a way to know how many cores are on my target (where gdbserver is ru= nning). I'm wondering if GDB already has this information? If not, I was thinking of adding 'info cores' or 'show cores'. Or maybe a convenience variable '$numcores'? I'm thinking 'info cores'. If this makes sense, I'll give it a try. Thanks Marc