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

Wei-min Pan
2018-03-24T21:42:29Z

On 3/24/2018 1:44 PM, Simon Marchi wrote:
> On 2018-03-24 16:11, Wei-min Pan wrote:
>> 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.
>
> Am I missing something?Â  Your patch (the origin of this thread)
> changed lookup_minimal_symbol_and_objfile to also search for demangled
> minsyms, didn't it?

Yes, originally I changed lookup_minimal_symbol_and_objfile to call
lookup_bound_minimal_symbol for each objfile
and now lookup_bound_minimal_symbol will call
lookup_bound_minimal_symbol once.

>
> Simon