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)


> > 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. Now, the debugger will break on all matches
by default - but the old behavior can be of course restored using
"ask".

Similarly in Ada, we used to ask the user by default. But we decided
to change this because we think that breaking on all matches is what
the user wants most of the time, and also to make it consistent with
the other languages.

-- 
Joel


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