From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4673 invoked by alias); 18 Nov 2005 12:43:26 -0000 Received: (qmail 4624 invoked by uid 22791); 18 Nov 2005 12:43:22 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 18 Nov 2005 12:43:22 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ed5Y9-0005BN-5m for gdb@sources.redhat.com; Fri, 18 Nov 2005 13:41:05 +0100 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Nov 2005 13:41:05 +0100 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Nov 2005 13:41:05 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: MI: is target running Date: Fri, 18 Nov 2005 12:43:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 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: 2005-11/txt/msg00379.txt.bz2 Hi, I have a simple question -- how a GUI frontend can determine if gdb is running the target at the moment? It's obviously necessary to disable some actions, enable some other actions and so on. Say, I'm using MI. However, user might have a lot of gdb macros he wants to still use, and those macros can contain "run", or "continue" commands -- why not. Here's what I've tried: ghost@zigzag:/tmp$ cat a.gdb define myrun run end ghost@zigzag:/tmp$ gdb --i=mi a.out ~"GNU gdb 6.3-debian\n" (gdb) source a.gdb &"source a.gdb\n" ^done (gdb) interpreter console "myrun" &"interpreter console \"myrun\"\n" Hi Program exited normally. ^done (gdb) So, for "run" command embedded in gdb macro invoked via "interpreter console", there's no "^running" in the output. So, GUI can't detect that the target is running. Is this a defect? Should not "^running" be emitted in all cases when target starts running? - Volodya