From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21016 invoked by alias); 22 Nov 2005 12:07:21 -0000 Received: (qmail 21008 invoked by uid 22791); 22 Nov 2005 12:07:21 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 Nov 2005 12:07:20 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1EeWvc-0007LI-DC for gdb@sources.redhat.com; Tue, 22 Nov 2005 15:07:17 +0300 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1EeWvZ-0007KX-QM; Tue, 22 Nov 2005 15:07:13 +0300 From: Vladimir Prus To: Konstantin Karganov Subject: Re: MI: asynchronous operation details User-Agent: KMail/1.7.2 References: <159126900511220107j13f8efecr@mail.gmail.com> In-Reply-To: <159126900511220107j13f8efecr@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline X-UID: 8242 X-Length: 2197 Date: Tue, 22 Nov 2005 12:07:00 -0000 Cc: gdb@sources.redhat.com Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200511221507.13272.ghost@cs.msu.su> 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/msg00470.txt.bz2 On Tuesday 22 November 2005 12:07, you wrote: > > so, in MI mode if I emit "-exec-continue" gdb starts inferiour and > > immediately gives me back the prompt, accepting further commands. > > Who said it accepts commands? My gdb (6.3) does not. Well, it gives back command prompt. That's what I meant ;-) > > However, I can't: > > 1. Understand what commands can meaningfully be issued while the inferior > > is running. Say, all data read/write commands are likely to produce > > inconsistent results if inferior is running. > > 2. Practically figure out which commands can be issued at all. Say, both > > -data-evaluate-expression and -exec-continue just hang, returning > > nothing. This is with CVS HEAD. > > > > Do I understand correctly that asynchronous MI just don't exist in CVS > > HEAD, and only command prompt loop is asynchronous? Even if so, and fully > > asynchronous MI is coming, what's the answer to question (1) above? > > Actually, MI also works synchonously. So for 1-2 the answer is "There > are no such commands." > And morover, you cannot issue the command while the inferior is > running. Gdb will process the input only when the execution stops. > As for me, I always ignore "(gdb)" prompt since it means nothing and > made a frontend work with gdb synchronously (I.e. wait for one answer > before sending another command.). Hmm.. that's what I do also -- I just wait for the "*stopped" response. - Volodya