]> git.ipfire.org Git - thirdparty/elfutils.git/commit
lib: Add eu_tsearch, eu_tfind, eu_tdelete and eu_tdestroy
authorAaron Merey <amerey@redhat.com>
Fri, 12 Jul 2024 22:23:56 +0000 (18:23 -0400)
committerAaron Merey <amerey@redhat.com>
Tue, 16 Jul 2024 20:22:34 +0000 (16:22 -0400)
commit1b5d586e5f237a1349ed8ca3ddee09c7b5fb366b
treecb46b852f755daf466cc99de5e9a7c83cca07af6
parent14e0df0cc31bab1f19fc0d391ed512d231589611
lib: Add eu_tsearch, eu_tfind, eu_tdelete and eu_tdestroy

Add struct search_tree to hold tree root and lock.  Add new eu_t*
functions for ensuring synchronized tree access.

Replace tsearch, tfind, etc with eu_t* equivalents.

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:

This patch replaces v1 03/16 and 14/16.
25 files changed:
lib/Makefile.am
lib/eu-config.h
lib/eu-search.c [new file with mode: 0644]
lib/eu-search.h [new file with mode: 0644]
lib/locks.h [new file with mode: 0644]
libdw/cfi.h
libdw/cie.c
libdw/dwarf_begin_elf.c
libdw/dwarf_end.c
libdw/dwarf_getcfi.c
libdw/dwarf_getlocation.c
libdw/dwarf_getmacros.c
libdw/dwarf_getsrclines.c
libdw/fde.c
libdw/frame-cache.c
libdw/libdwP.h
libdw/libdw_find_split_unit.c
libdw/libdw_findcu.c
libdwfl/cu.c
libdwfl/dwfl_module.c
libdwfl/libdwflP.h
libelf/elf_begin.c
libelf/elf_end.c
libelf/elf_getdata_rawchunk.c
libelf/libelfP.h