From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7623 invoked by alias); 27 Apr 2008 06:24:19 -0000 Received: (qmail 7613 invoked by uid 22791); 27 Apr 2008 06:24:18 -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; Sun, 27 Apr 2008 06:23:53 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jq0Ia-00063Q-KD for gdb@sources.redhat.com; Sun, 27 Apr 2008 06:23:44 +0000 Received: from 78.158.192.230 ([78.158.192.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 06:23:44 +0000 Received: from vladimir by 78.158.192.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Apr 2008 06:23:44 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: [MI] enabling non-stop mode Date: Sun, 27 Apr 2008 19:17:00 -0000 Message-ID: References: <200804262216.16948.vladimir@codesourcery.com> <18451.45027.743862.885534@kahikatea.snap.net.nz> 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/msg00226.txt.bz2 Nick Roberts wrote: > > Probably, we can extend this to enable feature that are not MI proper, > > say: > > > > (gdb) -list-features > > ^done,features=[....,"non-stop",....] > > (gdb) -enable-feature non-stop > > ^done > > > > The only issue here is that non-stop mode availability in general > > depends on the target, so maybe we should have a separate commands > > to list "target" feature and then enable target features? > > Why not just use -gdb-set? > > maint set linux-async --> set linux-async --> -gdb-set linux-async > maint set non-stop --> set non-stop --> -gdb-set non-stop This will now allow the frontend to check if non-stop mode is supported at all. > I thought the idea of -list-features was to give the frontend a simple means of > finding out which MI commands a version of Gdb will accept. Right; not all versions of GDB, and not with all targets, will support non-stop mode. > Why would a > frontend want to do "-disable-feature frozen-varobjs"? It should not do that, that's why only some of the features will be documented as user-togglable. - Volodya