From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31720 invoked by alias); 25 Feb 2009 18:52:20 -0000 Received: (qmail 31711 invoked by uid 22791); 25 Feb 2009 18:52:19 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Feb 2009 18:52:10 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n1PInp1A018612; Wed, 25 Feb 2009 13:49:52 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1PInpPO001843; Wed, 25 Feb 2009 13:49:51 -0500 Received: from opsy.redhat.com (vpn-12-110.rdu.redhat.com [10.11.12.110]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n1PInoBG013258; Wed, 25 Feb 2009 13:49:50 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 91438508295; Wed, 25 Feb 2009 11:49:48 -0700 (MST) To: Joel Brobecker Cc: Pedro Alves , Doug Evans , Marc Khouzam , gdb@sourceware.org Subject: Re: More descriptive prompt References: <200902241841.11813.pedro@codesourcery.com> <20090225174126.GO3948@adacore.com> From: Tom Tromey Reply-To: tromey@redhat.com Date: Wed, 25 Feb 2009 18:52:00 -0000 In-Reply-To: <20090225174126.GO3948@adacore.com> (Joel Brobecker's message of "Wed\, 25 Feb 2009 09\:41\:26 -0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-02/txt/msg00160.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: >> This is what I was using at one point. It added a PS1 style >> formatting to the gdb command, so I could do >> >> (gdb) set prompt (\\p \\T: \\S) Joel> Sounds like a useful idea to me. I'm torn between a python approach Joel> and Pedro's approach. Pedro's approach might be seen as less powerful, Joel> since one cannot extend the list of available escape sequences without Joel> rebuilding GDB. But I think it has the advantage of being simple Joel> to implement and simple to use. One could also write a Python hook, and then implement the PS1-style substitution idea in Python :-) Tom