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

Daniel Jacobowitz
2009-02-24T18:26:54Z

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