Extract gcinfo from image
authorAmy Yu <amycmyu@gmail.com>
Sat, 2 Jun 2018 00:04:48 +0000 (17:04 -0700)
committerAmy Yu <amycmyu@gmail.com>
Wed, 6 Jun 2018 22:02:03 +0000 (15:02 -0700)
src/tools/r2rdump/GCInfo.cs [new file with mode: 0644]
src/tools/r2rdump/R2RMethod.cs

diff --git a/src/tools/r2rdump/GCInfo.cs b/src/tools/r2rdump/GCInfo.cs
new file mode 100644 (file)
index 0000000..17cc5c6
--- /dev/null
@@ -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)
+        {
+
+        }
+    }
+}
index ea439ff..89288e4 100644 (file)
@@ -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()