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.]
On Wed, Feb 25, 2009 at 9:49 AM, Doug Evans <dje@google.com> 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