R2RDump - Commandline interface (dotnet/coreclr#18136)
authorAmy <amycmyu@gmail.com>
Fri, 1 Jun 2018 15:05:44 +0000 (08:05 -0700)
committerZach Montoya <zamont@microsoft.com>
Fri, 1 Jun 2018 15:05:44 +0000 (08:05 -0700)
commit1b59432c255f1e6fc714ade0dad3c223c136457b
treedccbbf2557b9ff9f96bf5ec4b5d85ba86b3fc64f
parent84455f7f081fdbbfe16c270b44fa08e727283647
R2RDump - Commandline interface (dotnet/coreclr#18136)

* Use ReadCompressedData for NativeHashTable, fix ref signature types, save array dimension, use AppendLine to avoid line-ending problems

* Include System.CommandLine, arg parsing, read/write file

* Add commandline options to search sections/methods/runtimeFunctions, option to dump raw data

* Added comments, save cli options in global variables, renamed some functions

* Add DumpByte function to R2RSection and R2RHeader, indent raw bytes

* Change some cli option names, use DumpRuntimeFunction, return list of query matches, changes to ArgStringToInt

* Move DumpBytes to R2RDump, print method of runtime function

* Use writer object instead of Console

* Use TextWriter instead of own writer class

* Handle jagged arrays and other cases using MethodDefinition.DecodeSignature with a slightly modified DisassemblingTypeProvider

* Close the _writer in finally block

Commit migrated from https://github.com/dotnet/coreclr/commit/88c10681e2b9a8584f574df234ee2a2ff74a8ea3
src/coreclr/src/tools/r2rdump/DisassemblingTypeProvider.cs [new file with mode: 0644]
src/coreclr/src/tools/r2rdump/NativeHashtable.cs
src/coreclr/src/tools/r2rdump/NativeReader.cs
src/coreclr/src/tools/r2rdump/R2RDump.cs
src/coreclr/src/tools/r2rdump/R2RDump.csproj
src/coreclr/src/tools/r2rdump/R2RHeader.cs
src/coreclr/src/tools/r2rdump/R2RMethod.cs
src/coreclr/src/tools/r2rdump/R2RReader.cs
src/coreclr/src/tools/r2rdump/R2RSection.cs
src/coreclr/src/tools/r2rdump/SignatureType.cs [deleted file]