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 Wed, Feb 25, 2009 at 9:41 AM, Joel Brobecker <brobecker@adacore.com> wrote:
>> 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)
>
> Sounds like a useful idea to me. I'm torn between a python approach
> and Pedro's approach. Pedro's approach might be seen as less powerful,
> since one cannot extend the list of available escape sequences without
> rebuilding GDB.  But I think it has the advantage of being simple
> to implement and simple to use.
>

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.


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