Since it wasn't too complicated to do, I implemented a dwarf object lock
(per struct dwarf lock) instead of having the static global lock. As per
your suggestion, I placed the lock over the whole dwarf_getalt function, so
now find_debug_altlink is called with the lock already acquired. In
addition,
Hi Heather,
On Tue, Oct 10, 2023 at 03:42:54PM +0200, Mark Wielaard wrote:
> * libdw/dwarf_getalt.c: Add lock for
> dbg->alt_dwarf/main->alt_dwarf.
This takes care of dwarf_getalt. Shouldn't dwarf_setalt also use
locking?
> Signed-off-by: Heather S. McIntyre
> Signed-off-by: Mark Wi
From: Heather McIntyre
* libdw/dwarf_getalt.c: Add lock for
dbg->alt_dwarf/main->alt_dwarf.
Signed-off-by: Heather S. McIntyre
Signed-off-by: Mark Wielaard
---
libdw/dwarf_getalt.c | 27 ++-
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a