Re: [PATCH PR gdb/18071] TLS variables can't be resolved on aarch64-linux-gnu

Wei-min Pan
2018-03-24T20:16:27Z

On 3/24/2018 12:52 PM, Simon Marchi wrote:
> On 2018-03-24 15:45, Wei-min Pan wrote:
>> Will submit a revised patch which
>>
>> Â (1) calls lookup_bound_minimal_symbol in info_address_command() and
>> Â (2) corrects the doc for lookup_minimal_symbol_and_objfile() in
>> minsyms.h.
>
> I did (2) when pushing your patch (I just removed the mention about it
> only looking through linkage names).Â  But I think the idea now would
> be to get rid of lookup_minimal_symbol_and_objfile, since it's
> basically the same as lookup_bound_minimal_symbol, isn't it?
>

Big difference isÂ  lookup_minimal_symbol_and_objfile(char *name) only
searches the ordinary hash table for "name"
while lookup_bound_minimal_symbol(char *name) does both the ordinary
hash tableÂ  and the demangled hash table.

> Simon