]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Make libdw_findcu thread-safe
authorAaron Merey <amerey@redhat.com>
Tue, 16 Jul 2024 16:37:32 +0000 (12:37 -0400)
committerAaron Merey <amerey@redhat.com>
Tue, 16 Jul 2024 20:22:36 +0000 (16:22 -0400)
commit990bfa539a7183e3627c7814935b69d2bd424665
tree3dfe9314141e2ddb20272dedfd02c105776e2eef
parent227a1dc3271997a6f9c1451dd335d84a78fc338e
libdw: Make libdw_findcu thread-safe

        * libdw/libdw_findcu.c (findcu_cb): Use eu_tsearch.
        (__libdw_findcu): Use eu_tfind and dwarf_lock
        (__libdw_findcu_addr): Use eu_tfind.
        (__libdw_find_split_dbg_addr): Likewise.

Signed-off-by: Heather S. McIntyre <hsm2@rice.edu>
Signed-off-by: Aaron Merey <amerey@redhat.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
v2 changes:
Use per-Dwarf_CU lock instead of a global lock.
libdw/libdw_findcu.c