]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Handle other string forms in dwarf_macro_param2
authorOmar Sandoval <osandov@fb.com>
Wed, 27 Sep 2023 18:20:53 +0000 (11:20 -0700)
committerMark Wielaard <mark@klomp.org>
Tue, 3 Oct 2023 16:06:39 +0000 (18:06 +0200)
commit8a0d1d7ee7371c086fc11c166160196515c210e6
tree449f8ed1fbc2461fe8c28df3eb4559fe123a7fb0
parentc9c9ffae725009b192b40e2d89035f353ae7055f
libdw: Handle other string forms in dwarf_macro_param2

dwarf_getmacros handles the additional macro string forms added by DWARF
5, but dwarf_macro_param2 doesn't.  Update it with the list of all
string forms allowed in .debug_macro.  In particular, GCC and Clang
generate DW_MACRO_define_strx and DW_MACRO_undef_strx, which
dwarf_macro_param2 couldn't handle.

Fixes: cdf865b890c2 ("readelf, libdw: Handle DWARF5 .debug_macro.")
Signed-off-by: Omar Sandoval <osandov@fb.com>
libdw/ChangeLog
libdw/dwarf_macro_param2.c