Re: [PATCH 04/14] libdw: Handle other string forms in dwarf_macro_param2

2023-10-03 Thread Mark Wielaard
Hi Omar, On Wed, 2023-09-27 at 11:20 -0700, Omar Sandoval wrote: > From: Omar Sandoval > > 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

[PATCH 04/14] libdw: Handle other string forms in dwarf_macro_param2

2023-09-27 Thread Omar Sandoval
From: Omar Sandoval 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_ma