From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18007 invoked by alias); 24 Feb 2009 18:26:54 -0000 Received: (qmail 17998 invoked by uid 22791); 24 Feb 2009 18:26:54 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Feb 2009 18:26:48 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 62195105BB; Tue, 24 Feb 2009 18:26:46 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 4013A1018B; Tue, 24 Feb 2009 18:26:46 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Lc1zR-00051T-Mt; Tue, 24 Feb 2009 13:26:45 -0500 Date: Tue, 24 Feb 2009 18:26:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: Pedro Alves , Marc Khouzam , gdb@sourceware.org Subject: Re: More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.] Message-ID: <20090224182645.GA19279@caradoc.them.org> Mail-Followup-To: Doug Evans , Pedro Alves , Marc Khouzam , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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/msg00152.txt.bz2 On Tue, Feb 24, 2009 at 10:12:03AM -0800, Doug Evans wrote: > 2) Provide a way to let a function dynamically compute the prompt. > Maybe something like "set prompt %p(my_python_function_to_compute_prompt)". Maybe define a new fake command for hooking, similar to hook-stop? define hook-prompt set prompt "(gdb $promptcount++) " end Except of course the CLI can't manipulate strings usefully. So you'd have to do it in Python. -- Daniel Jacobowitz CodeSourcery