[PATCH 1/2] debugedit: Track active CU

Mark Wielaard mark@klomp.org
Wed May 22 13:52:27 GMT 2024


Hi,

On Sun, 2024-05-19 at 23:05 +0200, Mark Wielaard wrote:
> The current CU is tracked indirectly by having static variables for
> ptr_size, cu_version and str_offsets_base. These are used to
> process/skip forms and resolve strx forms. Put all three in a new
> struct CU which must be passed to do_read_str_form_relocated,
> skip_form, edit_strp and edit_attributes. The struct CU can then also
> be used when parsing the line table string forms.
> 
> This should make .debug_line tables which use strx forms work (no
> producers have been found that use those though).

Pushed to main.

Cheers,

Mark


More information about the Debugedit mailing list