Implement GC ref map parsing and display in R2RDump (#21509)
authorTomáš Rylek <trylek@microsoft.com>
Sat, 15 Dec 2018 00:40:33 +0000 (01:40 +0100)
committerGitHub <noreply@github.com>
Sat, 15 Dec 2018 00:40:33 +0000 (01:40 +0100)
commit1df63bdbce55f2feb60238c244c6723dd9530e82
tree1ea21d2f4a6b919632caa6e13c557c224d544dd6
parentca65764c029f2dac6f4a187694f4232eec9b1115
Implement GC ref map parsing and display in R2RDump (#21509)

As part of my work on CPAOT implementation of GC ref map info
I have implemented decoder of the info so that it can be displayed
next to the import cell signatures.

This also uncovered one possible cause of R2RDump GcInfo-related
crashes that were observed by Andon and myself. It looks like Amy
in her initial implementation confused the various GC encodings
and used GC info to parse the import section auxiliary data which
actually contains the GC ref map info.

Thanks

Tomas
src/tools/r2rdump/CoreDisTools.cs
src/tools/r2rdump/GCRefMap.cs [new file with mode: 0644]
src/tools/r2rdump/R2RImportSection.cs
src/tools/r2rdump/R2RMethod.cs
src/tools/r2rdump/R2RReader.cs
src/tools/r2rdump/R2RSection.cs
src/tools/r2rdump/TextDumper.cs
src/tools/r2rdump/TransitionBlock.cs [new file with mode: 0644]
src/tools/r2rdump/XmlDumper.cs