This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] new set/show multiple-choice-auto-select command (take 3)
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 3 Feb 2008 12:40:00 -0800
- Subject: Re: [RFA] new set/show multiple-choice-auto-select command (take 3)
- References: <20080203043755.GI1581@adacore.com> <ufxw9vnlt.fsf@gnu.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. 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