From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9248 invoked by alias); 11 Apr 2008 12:56:38 -0000 Received: (qmail 9239 invoked by uid 22791); 11 Apr 2008 12:56:38 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Apr 2008 12:56:18 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JkInd-0006LC-Ot for gdb@sources.redhat.com; Fri, 11 Apr 2008 12:56:13 +0000 Received: from gate.lvk.cs.msu.su ([158.250.17.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Apr 2008 12:56:13 +0000 Received: from ghost by gate.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Apr 2008 12:56:13 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Specifying 'async mode' for testing Date: Fri, 11 Apr 2008 13:03:00 -0000 Message-ID: References: <200804071246.56722.vladimir@codesourcery.com> <20080407121344.GA6675@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.5 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: 2008-04/txt/msg00095.txt.bz2 Daniel Jacobowitz wrote: > On Mon, Apr 07, 2008 at 12:46:56PM +0400, Vladimir Prus wrote: >> >> While updating MI testsuite for async mode and other discussed changes, >> I find it preferable to know if we're testing async-enabled target, or >> not. In particular, because in async mode the order of some output is >> different, and creating a regexp that will catch all valid output and >> will not miss invalid output is a bit complex. >> >> What's the best way to specify async mode? One approach is use a board >> file, and put: >> >> set_board_info async 1 >> >> there, but creating board file is a nuisance. Is there any way to specify >> async mode on the command line of runtest? > > You could ask GDB whether it was in async mode, with show? Probably. I wonder if it's sensible to assume that GDB, for a given testrun, is either in async mode or in sync mode and never switches between those. I don't see any value in switching modes on the fly, but maybe I'm missing something? - Volodya