This is the mail archive of the
mailing list for the GDB project.
Re: [RFC/WIP PATCH 07/14] Expand %ITSET% in the prompt to the current I/T set.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Fri, 16 Dec 2011 18:52:20 +0000
- Subject: Re: [RFC/WIP PATCH 07/14] Expand %ITSET% in the prompt to the current I/T set.
- References: <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
On Tuesday 29 November 2011 21:21:08, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <email@example.com> writes:
> Pedro> Not sure this is the way to go, or whether we'll only support this
> Pedro> through python. This was simple enough to make sure I could work on
> Pedro> the rest of the stuff without getting lost. I'll also make use of
> Pedro> this in all examples in this series.
> I don't mind if you want to push some prompt stuff into the core, but I
> think it would be better if done in a way that was compatible with the
> Python prompt substitution code -- command-wise,
> substitution-style-wise, and whatever else.
I'm not certain about what you mean by this. The %%
sustitution added applies after the python substitution, basically
a sed before display. The result isn't stored anywhere.
The "only" thing affected AFAICS is that to print '%', we'd have
to escape it (e.g., %% => '%'), though I haven't implemented that.
> That code hasn't seen a release yet, so it can be changed if need be.
> (Though time is running out.)