From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30997 invoked by alias); 9 Oct 2006 20:28:20 -0000 Received: (qmail 30988 invoked by uid 22791); 9 Oct 2006 20:28:19 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Oct 2006 20:28:13 +0000 Received: from kahikatea.snap.net.nz (p202-124-125-131.snap.net.nz [202.124.125.131]) by viper.snap.net.nz (Postfix) with ESMTP id 097117BA16C; Tue, 10 Oct 2006 09:28:09 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 5F887BE3EC; Tue, 10 Oct 2006 09:25:22 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17706.45104.571592.914418@kahikatea.snap.net.nz> Date: Mon, 09 Oct 2006 20:28:00 -0000 To: Michael Snyder Cc: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: async implies sync In-Reply-To: <1160416828.14535.22.camel@localhost.localdomain> References: <20060830023335.GA6377@nevyn.them.org> <17653.930.196634.143646@kahikatea.snap.net.nz> <20060830040113.GA8257@nevyn.them.org> <17654.994.815362.897653@kahikatea.snap.net.nz> <20060830214257.GA5397@nevyn.them.org> <17688.59135.24869.397517@kahikatea.snap.net.nz> <20060926123757.GA9879@nevyn.them.org> <17701.43098.583849.540224@kahikatea.snap.net.nz> <20061006012633.GA20001@nevyn.them.org> <17701.47901.123920.954707@kahikatea.snap.net.nz> <20061006032420.GA22658@nevyn.them.org> <17704.29662.459220.234430@kahikatea.snap.net.nz> <1160416828.14535.22.camel@localhost.localdomain> X-Mailer: VM 7.19 under Emacs 22.0.50.23 X-IsSubscribed: yes 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: 2006-10/txt/msg00046.txt.bz2 > > define.exp fails with the script nextwhere. Asynchronous operation means > > that it tries to do `where' before 'next' has finished. Perhaps scripts > > should be forced to run synchronously. > > Hmm, boy, that's a good point. In fact, you know what? > I think we need some sort of synchronization primatives, > since the target and gdb can now run in parallel. > > Every time we do a step/next/continue/until, and come > back to the gdb prompt before the target has stopped, > we've effectively done a "fork". At an absolute minimum, > I think we need a "join" or a "wait". Some commands can sensibly be executed while the target is running e.g pwd, "show height", etc. Currently GDB only allows a few CLI commands (see top.c). Most CLI commands report: Cannot execute this command while the target is running. GDB allows no MI commands apart from -exec-interrupt (see mi-main.c) and reports: Cannot execute command interpreter-exec while target running At some stage more commands should be allowed but the above messages make sense in interactive use. Currently GDB reports when execution has stopped by outputting "*stopped,..". Isn't this equivalent to your "join"? Perhaps Apple can say what they do for scripts. -- Nick http://www.inet.net.nz/~nickrob