More descriptive prompt [was Re: Process exit in multi-process, and gdb's selected thread.]

Paul Pluzhnikov ppluzhnikov@google.com
Wed Feb 25 17:59:00 GMT 2009


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



More information about the Gdb mailing list