This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] Add SYMBOL_SET_LINKAGE_NAME
David,
> I was actually having similar thoughts on the way into work this
> morning. Maybe what I should focus on first is trying to establish
> the notion that, when calling lookup_symbol, the name you pass in
> always has to be in the appropriate form: in particular, lookup_symbol
> would never try to demangle a name on the fly. In the non-Ada world,
> that would mean that we always search by natural name; but it would
> pave the way for you to introduce your SYMBOL_SEARCH_NAME concept.
> That way, SYMBOL_SEARCH_NAME would have a clear meaning (even if
> nothing else would :-) ): it would be the name that you pass to
> lookup_symbol when trying to search for that symbol.
>
> Does that make sense to you? If so, I'll start generating appropriate
> patches.
It does; that certainly is the notion we currently adhere to with our
version of lookup_symbol, and also applies to C/C++.
Paul Hilfinger
P.S. Sorry for the delay: site visit approaching.