[PATCH] libdwfl_stacktrace: fix non-Linux build dep on PERF_SAMPLE_REGS_ABI

2025-09-08 Thread Serhei Makarov
Reported on a GNU Hurd build of elfutils. This is a quick fix pending my more complex patch to reduce dependency on linux perf concepts for the libdwfl_stacktrace code. * libdwfl_stacktrace/dwflst_perf_frame.c (perf_sample_regs_abi): Define this Linux enum on non-Linux platforms. --- libdwfl_st

Re: [PATCH 3/3] readelf.c: Close dwfl if dwfl_report_offline fails

2025-09-08 Thread Mark Wielaard
Hi Aaron, On Sun, Sep 07, 2025 at 10:17:29PM -0400, Aaron Merey wrote: > Within create_dwfl, if dwfl_begin is successful but dwfl_report_offline > fails, the dwfl * pointer being reported is reset to NULL without calling > dwfl_end, causing a memory leak. > > Update create_dwfl to call dwfl_end i

Re: [RFC] updated api for libdwfl_stacktrace

2025-09-08 Thread Frank Ch. Eigler
Hi - > [...] > Maybe Aaron's suggestion to use a key/value pairs like API makes sense > here? Or a struct containing properly named and **typed** parameters. (Coercing everything into general key/value is kind of papering over the compatibility / width / usability problem. Both caller and calle