This is the mail archive of the 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: [RFC/WIP PATCH 07/14] Expand %ITSET% in the prompt to the current I/T set.

On Tuesday 29 November 2011 21:21:08, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <> 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.)


Pedro Alves

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