From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3816 invoked by alias); 25 Feb 2009 17:41:39 -0000 Received: (qmail 3800 invoked by uid 22791); 25 Feb 2009 17:41:38 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Feb 2009 17:41:31 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 41D5C2BABC4; Wed, 25 Feb 2009 12:41:32 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Mf1L6doDOiwn; Wed, 25 Feb 2009 12:41:32 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 7511B2BAB9C; Wed, 25 Feb 2009 12:41:31 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id A415EE7ACD; Wed, 25 Feb 2009 09:41:26 -0800 (PST) Date: Wed, 25 Feb 2009 17:41:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: Doug Evans , Marc Khouzam , gdb@sourceware.org Subject: Re: More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.] Message-ID: <20090225174126.GO3948@adacore.com> References: <200902241841.11813.pedro@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902241841.11813.pedro@codesourcery.com> User-Agent: Mutt/1.4.2.2i 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/msg00157.txt.bz2 > 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) Sounds like a useful idea to me. I'm torn between a python approach and Pedro's approach. Pedro's approach might be seen as less powerful, since one cannot extend the list of available escape sequences without rebuilding GDB. But I think it has the advantage of being simple to implement and simple to use. -- Joel