Skip to content

Conversation

@neerajsi-msft
Copy link
Owner

The theme of this PR is to carry contextual information needed for dwarf decoding with the DIECursor.

We also move LocationList decoding fully into readDwarf.cpp and create a parallel iterator for RangeList decoding.

Finally, to prepare for reading dwarf5, we read the compilation unit header using byte-by-byte reads rather than by casting to a structure. We also put contextual information with the compilation unit info.

See the individual commits for more information. This pull request should be merged rather than squashed.

DWARF5 has more contextual information that is associated with the
compilation unit. As a preparation for using such information, carry it
with the DIECursor and eliminate places where we're passing in the
parent compilation unit.

Also add the RDAddr helper to read a target-address according to the
specification in the compilation unit.
Read the compilation unit header byte-by-byte rather than by casting the
data to a structure. Add the currentBaseAddress contextual info to the
compilation unit data.

Move the LOCCursor into readDwarf.cpp. Implement a RangeCursor similar
to the LOCCursor.

Add more debug printing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants