[PATCH 2/2] debugedit: Handle DW_MACRO_{define,undef}_strx

Mark Wielaard mark@klomp.org
Wed May 22 14:02:08 GMT 2024


Hi,

On Sun, 2024-05-19 at 23:05 +0200, Mark Wielaard wrote:
> For DW_MACRO_{define,undef}_strx we need to record the string index of
> the macro. Since this is read through the .debug_str_offets we need to
> know the relevant str_offsets_base of the CU associated with the macro
> table. Add a macros_offs field to struct CU. Set this in when seeing a
> DW_AT_macros. And make sure relocations against .debug_macros are
> resolved when handling ET_REL files.
> 
> Now all (macro) tests pass with CC=clang even when clang defaults to
> -gdwarf-5. The .debug_types tests are skipped because clang doesn't
> emit that section.

Pushed to main. Hopefully all builders will now be green!

Cheers,

Mark


More information about the Debugedit mailing list