From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20393 invoked by alias); 12 Nov 2013 18:13:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20376 invoked by uid 89); 12 Nov 2013 18:13:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,SPF_SOFTFAIL,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mtaout23.012.net.il Received: from Unknown (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2013 18:13:17 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MW500F00WOA0100@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Tue, 12 Nov 2013 20:13:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MW500F4IX9W0V10@a-mtaout23.012.net.il>; Tue, 12 Nov 2013 20:13:09 +0200 (IST) Date: Tue, 12 Nov 2013 18:34:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] New GDB/MI command "-info-gdb-mi-command" In-reply-to: <20131112174319.GE3481@adacore.com> To: Joel Brobecker Cc: tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83li0t1ob1.fsf@gnu.org> References: <8761rzknb4.fsf@fleche.redhat.com> <1384255504-28444-1-git-send-email-brobecker@adacore.com> <83siv11soi.fsf@gnu.org> <20131112174319.GE3481@adacore.com> X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00323.txt.bz2 > Date: Tue, 12 Nov 2013 21:43:19 +0400 > From: Joel Brobecker > Cc: tromey@redhat.com, gdb-patches@sourceware.org > > > > +There is no corresponding @value{GDBN} command. > > > > Having a way of querying that in CLI would facilitate better .gdbinit > > files, I think. > > Can you give some ideas as to how it would be used. Like this perhaps: if ($_featurep(FOO)) lets-use-FOO end > Remember also that you can always execute a GDB/MI command from CLI > using "interpreter-exec". But their output is not easily caught and used like above.