Re: [RFA] new set/show multiple-choice-auto-select commands (take 2)

Joel Brobecker
2008-01-17T12:31:59Z

> 1. set multiple-choice-auto-select off (default):
> If there is 0 || 1 symbol found, GDB follows the "normal" code path. If >
> 1 symbol is found
> the user choice is invoked
>
> 2. set multiple-choice-auto-select all:
> If there is > 1 symbol found all symbols found are automagically taken
> for e.g. breakpoints.
>
> 3. set multiple-choice-auto-select cancel:
> I think I'll ignore this. It makes no sense in that case.
>
> What do you think about it? Does it make sense?

So far, so good. But:

> The problem I saw and still see is the change of the default behaviour
> of GDB (and with that maybe the introduction of a lot of FAILs in the
> teststuite). The user has no possibility to avoid the user choice if
> there are > 1 symbols.

Right - that's the hole with using this setting. Thanks to your
explanations, I think that one way to cover that hole would be to
add an extra option like you suggested, and call it something like:
within-shared-library or somesuch. I think it's more informative
and also fits better in the concept introduced by the new "set/show"
command. In that case, the default can be set "within-shared-library"
and your current behavior would be preserved without change the
default behavior in Ada.

I need to look at how your feature is implemented. I wonder how well
this is supported when the language is Ada... As a first step, Ada
can treat this option as "off" (display menu and ask user).

--
Joel