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


> Date: Sat, 17 Sep 2005 22:41:09 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> 
> > 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 also do not have a strong opinion, but I admit that having one
> knob seems a bit simpler to me (in terms of the user interface).

Okay, but I still am missing something: we already have a couple of
"set SOMETHING" commands that use the convention that setting a limit
to zero (or -1 in one case) means unlimited.  Can't we use this in the
case in point, rather than inventing a new add_* interface?  Given
that we already have so many different add_command interfaces (and
all but 2 of them are undocumented), I'd rather not introduce yet
another interface unless we really have to.


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