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


On Wed, Feb 25, 2009 at 10:49 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
>
>>> This is what I was using at one point.  It added a PS1 style
>>> formatting to the gdb command, so I could do
>>>
>>> (gdb) set prompt (\\p \\T: \\S)
>
> Joel> Sounds like a useful idea to me. I'm torn between a python approach
> Joel> and Pedro's approach. Pedro's approach might be seen as less powerful,
> Joel> since one cannot extend the list of available escape sequences without
> Joel> rebuilding GDB.  But I think it has the advantage of being simple
> Joel> to implement and simple to use.
>
> One could also write a Python hook, and then implement the PS1-style
> substitution idea in Python :-)

Ya, ya, that occurred to me. :-)

fwiw, I'd prefer to support a more intelligent prompt without requiring python.
But I'm happy to implement whatever y'all agree on.


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