From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8052 invoked by alias); 25 Feb 2009 17:49:35 -0000 Received: (qmail 8041 invoked by uid 22791); 25 Feb 2009 17:49:34 -0000 X-SWARE-Spam-Status: No, hits=-1.8 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 17:49:28 +0000 Received: from spaceape9.eur.corp.google.com (spaceape9.eur.corp.google.com [172.28.16.143]) by smtp-out.google.com with ESMTP id n1PHnQpX017951 for ; Wed, 25 Feb 2009 09:49:26 -0800 Received: from rv-out-0506.google.com (rvbl9.prod.google.com [10.140.88.9]) by spaceape9.eur.corp.google.com with ESMTP id n1PHnNFR004352 for ; Wed, 25 Feb 2009 09:49:24 -0800 Received: by rv-out-0506.google.com with SMTP id l9so113818rvb.41 for ; Wed, 25 Feb 2009 09:49:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.36.10 with SMTP id o10mr157876rvj.59.1235584163358; Wed, 25 Feb 2009 09:49:23 -0800 (PST) In-Reply-To: <20090225174126.GO3948@adacore.com> References: <200902241841.11813.pedro@codesourcery.com> <20090225174126.GO3948@adacore.com> Date: Wed, 25 Feb 2009 17:49:00 -0000 Message-ID: Subject: Re: More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.] From: Doug Evans To: Joel Brobecker Cc: 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/msg00158.txt.bz2 On Wed, Feb 25, 2009 at 9:41 AM, Joel Brobecker wrote: >> 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. > fwiw, I was actually proposing both. Provide simple things (a la PS1 in bash parlance or whatever), but also provide a way to run a (python) function to compute the prompt.