From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6980 invoked by alias); 25 Feb 2009 19:00:45 -0000 Received: (qmail 6958 invoked by uid 22791); 25 Feb 2009 19:00:40 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Feb 2009 19:00:35 +0000 Received: from spaceape8.eur.corp.google.com (spaceape8.eur.corp.google.com [172.28.16.142]) by smtp-out.google.com with ESMTP id n1PJ0W3T018558 for ; Wed, 25 Feb 2009 11:00:33 -0800 Received: from rv-out-0506.google.com (rvbf6.prod.google.com [10.140.82.6]) by spaceape8.eur.corp.google.com with ESMTP id n1PJ0QN4007347 for ; Wed, 25 Feb 2009 11:00:30 -0800 Received: by rv-out-0506.google.com with SMTP id f6so142386rvb.51 for ; Wed, 25 Feb 2009 11:00:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.62.9 with SMTP id p9mr166509rvk.218.1235588430418; Wed, 25 Feb 2009 11:00:30 -0800 (PST) In-Reply-To: References: <200902241841.11813.pedro@codesourcery.com> <20090225174126.GO3948@adacore.com> Date: Wed, 25 Feb 2009 19:00:00 -0000 Message-ID: Subject: Re: More descriptive prompt From: Doug Evans To: tromey@redhat.com Cc: Joel Brobecker , Pedro Alves , Marc Khouzam , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true 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: 2009-02/txt/msg00161.txt.bz2 On Wed, Feb 25, 2009 at 10:49 AM, Tom Tromey wrote: >>>>>> "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 :-) Ya, ya, that occurred to me. :-) fwiw, I'd prefer to support a more intelligent prompt without requiring python. But I'm happy to implement whatever y'all agree on.