From: Amy Yu Date: Sat, 2 Jun 2018 00:04:48 +0000 (-0700) Subject: Extract gcinfo from image X-Git-Tag: accepted/tizen/unified/20190422.045933~1951^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca03baab899ed3ece5fe308818cb97b8347b155f;p=platform%2Fupstream%2Fcoreclr.git Extract gcinfo from image --- diff --git a/src/tools/r2rdump/GCInfo.cs b/src/tools/r2rdump/GCInfo.cs new file mode 100644 index 0000000..17cc5c6 --- /dev/null +++ b/src/tools/r2rdump/GCInfo.cs @@ -0,0 +1,14 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace R2RDump +{ + class GCInfo + { + public GCInfo(byte[] image, int offset) + { + + } + } +} diff --git a/src/tools/r2rdump/R2RMethod.cs b/src/tools/r2rdump/R2RMethod.cs index ea439ff..89288e4 100644 --- a/src/tools/r2rdump/R2RMethod.cs +++ b/src/tools/r2rdump/R2RMethod.cs @@ -44,8 +44,9 @@ namespace R2RDump public R2RMethod Method { get; } public UnwindInfo UnwindInfo { get; } + public GCInfo GCInfo { get; } - public RuntimeFunction(int id, int startRva, int endRva, int unwindRva, R2RMethod method, UnwindInfo unwindInfo) + public RuntimeFunction(int id, int startRva, int endRva, int unwindRva, R2RMethod method, UnwindInfo unwindInfo, GCInfo gcInfo) { Id = id; StartAddress = startRva; @@ -55,6 +56,7 @@ namespace R2RDump UnwindRVA = unwindRva; Method = method; UnwindInfo = unwindInfo; + GCInfo = gcInfo; } public override string ToString()