This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.]
- From: Daniel Jacobowitz <drow at false dot org>
- To: Doug Evans <dje at google dot com>
- Cc: Pedro Alves <pedro at codesourcery dot com>, Marc Khouzam <marc dot khouzam at ericsson dot com>, gdb at sourceware dot org
- Date: Tue, 24 Feb 2009 13:26:45 -0500
- Subject: Re: More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.]
- References: <e394668d0902241012n458775c5s9e7ba9187209764@mail.gmail.com>
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