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

Daniel Jacobowitz
Tue Feb 24 18:26:00 GMT 2009

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++) "

Except of course the CLI can't manipulate strings usefully.  So you'd
have to do it in Python.

Daniel Jacobowitz

More information about the Gdb mailing list