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] new set/show multiple-choice-auto-select command (take 3)


> Date: Sun, 3 Feb 2008 12:40:00 -0800
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
> 
> > > The change since the last time is that the default had been changed
> > > to "all".
> > 
> > Is this the current behavior, or are we changing the behavior here?
> 
> It's kind of both :). If you remember some work has been done recently
> to handle breakpoints with multiple locations. For instance, breaking
> on a constructor results in at least 2 locations for the same
> breakpoint. In that case, the behavior was the equivalent of having
> the new setting set to "all", so we're not changing anything here.
> 
> But when dealing with homonyms (for instance, breaking on overloaded
> methods), the standard behavior was to ask the user to select the ones
> he wanted to break on. This patch makes things more consistent by
> changing the behavior.

I'm uneasy about changing the default behavior, but perhaps this is
okay if breaking on overloaded methods was introduced not too long
ago.  Is that the case?

In any case, the NEWS entry should mention this change in the default.


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