#
7dec7afe |
|
05-Oct-2023 |
David Karoly <karolyd577@gmail.com> |
Debugger: add DWARF5 attribute and form definitions Introduce new attribute classes: * addrptr represents an offset into the .debug_addr_section * loclist represents an offset or an index to a location list * rangelist represents an offset or an index to a range list * stroffsetsptr represents an index to the indirect string table The semantics of some existing attribute classes changed: * loclistptr represents an offset into the .debug_loc / .debug_loclist section It will be used only when setting loclists_base attribute. In all other places we should use loclist attribute class. * rangelistptr represents an offset into the .debug_ranges / .debug_rnglist section It will be used only when setting rnglists_base attribute. In all other places we should use rangelist attribute class. Define lookup table for new DW_AT_* attribute types * change the existing references to AC_LOCLISTPTR to AC_LOCLIST as in those places now either an index or an offset can be accepted (previously there were no indexes, only offsets everywhere) * only DW_AT_loclists_base uses AC_LOCLISTPTR * similarly for AC_RANGELISTPTR and AC_RANGELIST as ranges can be specified using either an index or an offset * only DW_AT_rnglists_base uses AC_RANGELISTPTR Define lookup table for new DW_FORM_* attribute forms * similar reshuffle for location lists and range lists Change-Id: I78d307889cd6082a19870afdc571dc0c83d19644 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6982 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|