[DWARFVerifier] Allow simplified template names in debug_name
LLDB can benefit from having the base name of functions (i.e. without any template parameters) as an entry into accelerator tables pointing back in the DIE for the corresponding function specialization. In fact, some LLDB functionality is only possible when those entries are present. The DWARFLinker has been adding such entries for a while now, both with apple_names and with debug_names. However, this has two side effects: 1. Some LLDB functionality is only possible when dsym bundles are present (i.e. the linker touched the debug info). 2. The DWARFVerifier doesn't accept debug_name sections created by the linker, as such names are (usually) neither the AT_name nor the AT_linkage_name of the DIE. Based on recent discussion [1], and because the DWARF 5 spec says that: > A producer may choose to implement additional rules for what names are placed > in the index This patch relaxes the checks on the verifier to allow for simplified template n...
parent
421c9bbf
Please register or sign in to comment