From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3565 invoked by alias); 16 Dec 2011 19:33:30 -0000 Received: (qmail 3557 invoked by uid 22791); 16 Dec 2011 19:33:29 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Dec 2011 19:33:15 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RbdWs-0001EP-HR from pedro_alves@mentor.com ; Fri, 16 Dec 2011 11:33:14 -0800 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 16 Dec 2011 19:33:12 +0000 From: Pedro Alves To: Tom Tromey Subject: Re: [RFC/WIP PATCH 07/14] Expand %ITSET% in the prompt to the current I/T set. Date: Fri, 16 Dec 2011 19:38:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-13-generic; KDE/4.7.2; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <20111128153742.17761.21459.stgit@localhost6.localdomain6> <201112161852.20542.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201112161933.06797.pedro@codesourcery.com> X-IsSubscribed: yes 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 X-SW-Source: 2011-12/txt/msg00535.txt.bz2 On Friday 16 December 2011 19:06:47, Tom Tromey wrote: > >>>>> "Pedro" == Pedro Alves writes: > > Tom> I don't mind if you want to push some prompt stuff into the core, but I > Tom> think it would be better if done in a way that was compatible with the > Tom> Python prompt substitution code -- command-wise, > Tom> substitution-style-wise, and whatever else. > > Pedro> I'm not certain about what you mean by this. The %% > Pedro> sustitution added applies after the python substitution, basically > Pedro> a sed before display. The result isn't stored anywhere. > Pedro> The "only" thing affected AFAICS is that to print '%', we'd have > Pedro> to escape it (e.g., %% => '%'), though I haven't implemented that. > > It just seems strange to me for set extended-prompt to use one syntax, > but for this to use a different syntax. I realize consistency is not > GDB's strong suit, but this goes too far :) Oh, I was aware of gdb.prompt_hook, but I completely missed "set extended-prompt". :-) And it looks like a just built gdb doesn't pick up commands from $srcdir/gdb/python/lib/gdb/command/ . grep found it though. -- Pedro Alves