From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23015 invoked by alias); 16 Dec 2011 19:07:08 -0000 Received: (qmail 23002 invoked by uid 22791); 16 Dec 2011 19:07:07 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Dec 2011 19:06:53 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBGJ6nEL030389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Dec 2011 14:06:49 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pBGJ6nDp018229; Fri, 16 Dec 2011 14:06:49 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id pBGJ6lg0016667; Fri, 16 Dec 2011 14:06:47 -0500 From: Tom Tromey To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [RFC/WIP PATCH 07/14] Expand %ITSET% in the prompt to the current I/T set. References: <20111128153742.17761.21459.stgit@localhost6.localdomain6> <20111128153931.17761.19802.stgit@localhost6.localdomain6> <201112161852.20542.pedro@codesourcery.com> Date: Fri, 16 Dec 2011 19:09:00 -0000 In-Reply-To: <201112161852.20542.pedro@codesourcery.com> (Pedro Alves's message of "Fri, 16 Dec 2011 18:52:20 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00523.txt.bz2 >>>>> "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 :) Tom