This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] print arrays with indexes
On Sat, Sep 17, 2005 at 02:51:38PM -0700, Joel Brobecker wrote:
> > Then doesn't it make sense to agree on the interface first? :-)
>
> Right! I just wanted to hear a few other opinions to choose.
> Perhaps Eli and/or Mark would like to comment?
>
> In any case:
>
> > You suggested on/off/auto and a separate threshold. Jim suggested
> > on/off/threshold. I prefer on/off/threshold of those two options,
> > although it may be a bit tricky to get GDB to handle that correctly.
> > Want to give it a try, or continue discussing alternatives?
>
> I'm willing to give it a try. I couldn't find a mechanism in our
> "set/show" machinery that handled something like this, though.
> Unless I missed it, that's something I'll need to add too.
Yes, I'm afraid so. I'd recommend wiring it to a single unsigned
integer. For this case 0 meaning "on" and UINT_MAX meaning "off" makes
sense; for other uses (limit rather than threshold), the other way
around would make more sense. I think it's reasonable to add new var_*
items for this; that should be pretty easy. Maybe var_threshold.
> But first, let's agree on the interface. I'm OK with Jim's suggestion.
> How about we give other people a couple more days to think about it
> and provide some feedback? And then I'll start working on the
> implementation.
OK.
--
Daniel Jacobowitz
CodeSourcery, LLC