[PATCH 13/15 v4] Add tests/run-eu-search-macros.sh

2025-01-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search_macros.sh * tests/Makefile.am: Add eu_search_macros, run-eu-search-macros.sh. * tests/eu_search_macros.c: New file. * tests/run-eu-search-macros.sh: New file. Signed-off-by: Heather S. McIntyre Sign

[PATCH 08/15] dwarf_offdie.c: Add locking

2025-01-19 Thread Aaron Merey
* libdw/dwarf_offdie.c (__libdw_offdie): Use dwarf_lock. Signed-off-by: Aaron Merey --- libdw/dwarf_offdie.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdw/dwarf_offdie.c b/libdw/dwarf_offdie.c index 883720de..74eac420 100644 --- a/libdw/dwarf_offdie.c +++ b/libdw/dwarf_of

[PATCH 01/15] Add eu_search_tree_init

2025-01-19 Thread Aaron Merey
* libdw/dwarf_begin_elf.c (dwarf_begin_elf): Initialize eu_search_trees. Signed-off-by: Aaron Merey --- libdw/dwarf_begin_elf.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c index e4826dda..c8292913 100644 --- a/libdw

[PATCH 05/15] dwarf_getsrclines.c: Add locking

2025-01-19 Thread Aaron Merey
* libdw/dwarf_getsrclines.c (dwarf_getsrclines): Use dwarf_lock. Signed-off-by: Aaron Merey --- libdw/dwarf_getsrclines.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c index da78db67..fb2c

[PATCH 04/15] dwarf_getsrcfiles.c: Add locking

2025-01-19 Thread Aaron Merey
* libdw/dwarf_getsrcfiles.c (dwarf_getsrcfiles): Use dwarf_lock. Signed-off-by: Aaron Merey --- libdw/dwarf_getsrcfiles.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libdw/dwarf_getsrcfiles.c b/libdw/dwarf_getsrcfiles.c index 24e4b7d2..3029ce69 100644

[PATCH 03/15] dwarf_filesrc.c: Add locking

2025-01-19 Thread Aaron Merey
* libdw/dwarf_filesrc.c (dwarf_filesrc): Use dwarf_lock. Signed-off-by: Aaron Merey --- libdw/dwarf_filesrc.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libdw/dwarf_filesrc.c b/libdw/dwarf_filesrc.c index d866ce72..a0881f36 100644 --- a/libdw/dwar

[PATCH 02/15] Change type of dwarf_lock from rwlock to mutex

2025-01-19 Thread Aaron Merey
Change type of dwarf_lock to mutex in order to take advantage of built-in support for recursive locking. * lib/locks.h: Add macros for locking, unlocking, initializing and destroying mutexes. * libdw/dwarf_begin_elf.c (dwarf_end): Replace rwlock macro with mutex mac

[PATCH 11/15] Add tests/thread-safety-subr.sh

2025-01-19 Thread Aaron Merey
thread-safety-subr.sh contains subroutine check_thread_safety_enabled which skips further testing when either USE_LOCKS is false or when attempting to use valgrind with address or memory sanitizer enabled. * tests/Makefile.am (EXTRA_DIST): Add thread-safety-subr.sh. * tests/thread-

[PATCH 15/15 v4] Add tests/run-eu-search-die.sh

2025-01-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search_die. * tests/Makefile.am: Add eu_search_die, run-eu-search-die.sh. * tests/eu_search_die.c: New file. * tests/run-eu-search-die.sh: New file. Signed-off-by: Heather S. McIntyre Signed-off-by: Aaron Merey S

[PATCH 10/15] Add configure option --enable-helgrind

2025-01-19 Thread Aaron Merey
Like --enable-valgrind but uses helgrind instead of memcheck. If both --enable-valgrind and --enable-helgrind are given then helgrind takes priority. * configure.ac: Add --enable-helgrind option. * tests/Makefile.am: If USE_HELGRIND is true, then include --tool=helgrind in

[PATCH 06/15] Add Dwarf member to Dwarf_Lines and Dwarf_Files

2025-01-19 Thread Aaron Merey
* libdw/dwarf_getsrclines.c (read_srcfiles): Initialize dbg member. * libdw/libdwP.h (struct Dwarf_Files_s): Add Dwarf member. (struct Dwarf_Lines_s): Ditto. Signed-off-by: Aaron Merey --- libdw/dwarf_getsrclines.c | 4 libdw/libdwP.h| 2 ++ 2 fil

[PATCH 14/15 v4] Add tests/run-eu-search-lines.sh

2025-01-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search-lines. * tests/Makefile.am: Add eu_search_lines, run-eu-search-lines.sh. * tests/eu_search_lines.c: New file. * tests/run-eu-search-lines.sh: New file. Signed-off-by: Heather S. McIntyre Signed-off-

[PATCH 07/15] dwarf_lineaddr.c: Add locking

2025-01-19 Thread Aaron Merey
* libdw/dwarf_lineaddr.c (dwarf_lineaddr): Use dwarf_lock. Signed-off-by: Aaron Merey --- libdw/dwarf_lineaddr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libdw/dwarf_lineaddr.c b/libdw/dwarf_lineaddr.c index 4e1952d3..bf81966c 100644 --- a/libdw/dwarf_lineaddr.c +++ b/libdw

[PATCH 09/15] dwarf_onesrcline.c: Add locking

2025-01-19 Thread Aaron Merey
* libdw/dwarf_onesrcline.c (dwarf_onesrcline): Use dwarf_lock. Signed-off-by: Aaron Merey --- libdw/dwarf_onesrcline.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libdw/dwarf_onesrcline.c b/libdw/dwarf_onesrcline.c index 5d3c3ded..1a16269a 100644 --- a/libd

[PATCH 12/15 v4] Add tests/run-eu-search-cfi.sh

2025-01-19 Thread Aaron Merey
From: Heather McIntyre * tests/.gitignore: Add eu_search_cfi. * tests/Makefile.am: Add eu_search_cfi, run-eu-search-cfi.sh. * tests/eu_search_cfi.c: New file. * tests/run-eu-search-cfi.sh: New file. Signed-off-by: Heather S. McIntyre Signed-off-by: Aaron Merey S