Initial support for normalized 'naked' R2RDump output (dotnet/coreclr#20875)
authorTomáš Rylek <trylek@microsoft.com>
Tue, 13 Nov 2018 21:28:32 +0000 (22:28 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Nov 2018 21:28:32 +0000 (22:28 +0100)
commitd380f900e8adb2d62fc98d3a7e8ff0516e8492d0
treeb66d413a62c00ea8f240fc7d86317710dfe3f5ec
parentce118b68e40e37ea18d4706715d579886450b426
Initial support for normalized 'naked' R2RDump output (dotnet/coreclr#20875)

* Initial support for normalized 'naked' R2RDump output

This change introduces a new option "--naked" that takes output
normalization even further - it intentionally leaves out any
position information to make the output easier to diff between
CPAOT and Crossgen.

One other new option is "--entrypoints" which dumps a plain
list of JITted methods in the R2R executable. This can be used
for comparisons between CPAOT and Crossgen and / or for static
analysis of what methods were actually emitted by the compiler.

* Addressed Zach's PR feedback

1) Added argument consistency check for the invalid combination
"--naked" + "--raw".

2) Added dump of multi-dimensional array lower bounds and sizes
when available.

Thanks

Tomas

Commit migrated from https://github.com/dotnet/coreclr/commit/e586793e0fbf0fa3d42e4519663ed2d977198a23
src/coreclr/src/tools/r2rdump/CoreDisTools.cs
src/coreclr/src/tools/r2rdump/R2RDump.cs
src/coreclr/src/tools/r2rdump/R2RMethod.cs
src/coreclr/src/tools/r2rdump/R2RReader.cs
src/coreclr/src/tools/r2rdump/R2RSignature.cs
src/coreclr/src/tools/r2rdump/TextDumper.cs
src/coreclr/src/tools/r2rdump/XmlDumper.cs