From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16817 invoked by alias); 25 Feb 2009 17:59:43 -0000 Received: (qmail 16806 invoked by uid 22791); 25 Feb 2009 17:59:42 -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:59:36 +0000 Received: from zps19.corp.google.com (zps19.corp.google.com [172.25.146.19]) by smtp-out.google.com with ESMTP id n1PHxYAV025628 for ; Wed, 25 Feb 2009 09:59:34 -0800 Received: from gxk19 (gxk19.prod.google.com [10.202.11.19]) by zps19.corp.google.com with ESMTP id n1PHwssJ023445 for ; Wed, 25 Feb 2009 09:59:33 -0800 Received: by gxk19 with SMTP id 19so320068gxk.3 for ; Wed, 25 Feb 2009 09:59:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.135.16 with SMTP id i16mr151760wfd.272.1235584772937; Wed, 25 Feb 2009 09:59:32 -0800 (PST) In-Reply-To: References: <200902241841.11813.pedro@codesourcery.com> <20090225174126.GO3948@adacore.com> Date: Wed, 25 Feb 2009 17:59:00 -0000 Message-ID: <8ac60eac0902250959y125aa869tc56bb1fdc95c70bc@mail.gmail.com> Subject: Re: More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.] From: Paul Pluzhnikov To: Doug Evans 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/msg00159.txt.bz2 On Wed, Feb 25, 2009 at 9:49 AM, Doug Evans wrote: > 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. bash actually has a more powerful mechanism as well: PROMPT_COMMAND If set, the value is executed as a command prior to issuing each primary prompt. Sounds like a python or user-definable prompt_command + PS1-like token expansion will address most needs. -- Paul Pluzhnikov