[RFC] canonical linespec and multiple breakpoints ...

Jerome Guitton guitton@adacore.com
Tue Jul 5 09:20:00 GMT 2011


Joel Brobecker (brobecker@adacore.com):

> I think that this is a good general rule, and something we should
> encourage our users to use. But it seems that it does not cover
> the case where 'set multiple-symbols ask' is in use, does it?
> My understanding, when `ask' is that, if the user selects `all',
> then we're in the case above (fire at all locations, add new locations
> as we discover them), but if the user selects a sub-sets of the
> potential matches, what should we do?
> 
> My suggestion, in that case, is to make the list of selected
> locations static.  In other words, we do not add new locations
> as they get discovered.

I would suggest a slightly different rule: all breakpoints are still
"multiple" by default. No "static" one. But, in the case of 'set
multiple-symbols ask' and when one symbol is selected, then a
breakpoint will be set, whose location will not be ambiguous (it will
be "canonicalized"). So this "multiple" breakpoint will always
resolve to only one location. If more than one choice is selected,
same thing, with one breakpoint per choice.

I'd rather avoid adding a special breakpoint kind for 'ask'. Just to
keep it simple.



More information about the Gdb-patches mailing list