From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25248 invoked by alias); 17 Nov 2004 14:25:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24889 invoked from network); 17 Nov 2004 14:25:34 -0000 Received: from unknown (HELO asav1.lyse.net) (213.167.96.68) by sourceware.org with SMTP; 17 Nov 2004 14:25:34 -0000 Received: from asav1.lyse.net (asav1.lyse.net [127.0.0.1]) by localhost.lyse.net (Postfix) with ESMTP id 36A369004D for ; Wed, 17 Nov 2004 15:24:10 +0100 (CET) Received: from lyte-mail1.lyse.net (unknown [192.168.20.12])by asav1.lyse.net (Postfix) with SMTP id 1C8259002Bfor ; Wed, 17 Nov 2004 15:24:10 +0100 (CET) Received: (qmail 26792 invoked from network); 17 Nov 2004 14:25:33 -0000 Received: from unknown (HELO famine) (84.234.138.230) by lyte-mail1.lyse.net with SMTP; 17 Nov 2004 14:25:33 -0000 Subject: Query to find out the state of the target From: =?ISO-8859-1?Q?=D8yvind?= Harboe To: gdb@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 Message-Id: <1100701532.18965.21.camel@famine> Mime-Version: 1.0 Date: Wed, 17 Nov 2004 19:48:00 -0000 Content-Transfer-Encoding: quoted-printable X-imss-version: 2.7 X-imss-result: Passed X-imss-scores: Clean:20.36522 C:16 M:0 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:1 S:1 R:1 (0.1500 0.1500) X-SW-Source: 2004-11/txt/msg00183.txt.bz2 I'm trying to figure out what command to issue to GDB to find out the state of the target. Presumably the complete list of GDB target states are "running", "suspended" or "disconnected".=20 "info remote-process" is unsuitable, because it isn't supported by all types of targets(e.g. deeply embedded targets typically have no process). The reason why I'd like to find out the state of the target, is to update the GUI state in my embedded Eclipse CDT GUI plugin accordingly. After the execution of the .gdbinit script, the state of the target will be unknown as the user can place it in all three states... http://www.zylin.com/embeddedcdt.html --=20 =D8yvind Harboe http://www.zylin.com