This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]