Re: RFA: implement ambiguous linespec proposal

Jerome Guitton
2011-11-14T21:32:10Z

Tom Tromey (tromey@redhat.com):

> Yeah, this is actually what happens in multiple-symbols=ask mode: we
> present the canonical forms to the user, and record as the filter the
> one that he chooses.
>
> An implication of this is that we don't discriminate more finely than
> what can be encoded in the canonical form. So, for example, one cannot
> set a symbolic (as opposed to by-address) breakpoint at a single point
> of inlining -- because the canonical form for the inlined function will
> be identical across inlined instances.
>
> I don't know if that description makes any sense outside my head :)

That makes sense in my head as well :) and it think that it is
reasonable. If the "ask" mode discriminated between all points of
inlining, that would most probably make it painful on many optimized
applications.

That is too say: making it asking too many questions would be a
problem. Discriminating at the level of the canonical form seems to
be a good compromise.