llvm-symbolizer: Fix "start file" to work with Split DWARF

Authored by dblaikie on Jul 9 2021, 6:27 PM.


llvm-symbolizer: Fix "start file" to work with Split DWARF

A followup to the feature added in
69da27c7496ea373567ce5121e6fe8613846e7a5 that added the optional "start
file name" to match "start line" - but this didn't work with Split DWARF
because of the need for the decl file number resolution code to refer
back to the skeleton unit to find its .debug_line contribution. So this
patch adds the necessary infrastructure to track the skeleton unit
corresponding to a split full unit for the purpose of this lookup.

Event Timeline

Herald added a subscriber: Restricted Project. · View Herald TranscriptJul 9 2021, 6:41 PM

The new test fails on Windows:

Please take a look etc :)

perennial Windows path problem:(

# SYM: Filename: ./././test.h
<stdin>:1:1: note: scanning from here
<stdin>:2:2: note: possible intended match here
 Filename: .\.\./test.h

.debug_gnu_pubnames/.debug_gnu_pubtypes can be removed from the test.