libctf: avoid nonportable __thread in CTF archive handling
authorNick Alcock <nick.alcock@oracle.com>
Fri, 13 Dec 2019 14:48:07 +0000 (14:48 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 26 Jun 2020 14:56:39 +0000 (15:56 +0100)
commit2e428e74401480c562a203ba6b6923ce8c7811fa
tree6b267631b666ead5ad4af1e8f1dfe30e961f7c8c
parent2f6ecaed667d1597c67991224948e0a3da427cc9
libctf: avoid nonportable __thread in CTF archive handling

This keeps archive searching threadsafe using the new bsearch_r that was
just added to libiberty.

PR25120
libctf/
* ctf-archive.c (search_nametbl): No longer global: declare...
(ctf_arc_open_by_name_internal): ... here. Use bsearch_r.
(search_modent_by_name): Take and use ARG for the nametbl.
libctf/ChangeLog
libctf/ctf-archive.c