This is the mail archive of the gdb-patches@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: [RFA] print arrays with indexes


On Sun, Sep 18, 2005 at 06:37:19AM +0300, Eli Zaretskii wrote:
> > Date: Sat, 17 Sep 2005 14:51:38 -0700
> > From: Joel Brobecker <brobecker@adacore.com>
> > 
> > > 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.
> 
> I don't see any disadvantages to the on/off/auto+threshold method that
> would justify yet another add_* interface.  Can someone please tell
> why is that a good idea?

My first reaction was that it would be confusing.  We'd have a variable
to hold the threshold, and it would always show up in "show" or "help"
output, but most of the time its value would be ignored.  The trickier
something is to document accurately, the more likely it is to confuse
users.

I'm not real attached to either one.  If you think two separate knobs
is simpler, then that's fine with me.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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