Add more natvis visualizations for base VM types. (#53052)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Tue, 25 May 2021 00:12:37 +0000 (17:12 -0700)
committerGitHub <noreply@github.com>
Tue, 25 May 2021 00:12:37 +0000 (17:12 -0700)
src/coreclr/vm/vm.natvis

index f7bdbb1..c06165f 100644 (file)
@@ -13,4 +13,27 @@ The .NET Foundation licenses this file to you under the MIT license.
             <ExpandedItem>m_value</ExpandedItem>
         </Expand>
     </Type>
+    <Type Name="Volatile&lt;*&gt;">
+        <DisplayString>{m_val}</DisplayString>
+        <Expand>
+            <ExpandedItem>m_val</ExpandedItem>
+        </Expand>
+    </Type>
+    <Type Name="Object">
+        <Expand>
+            <Item Name="[Type]">m_pMethTab</Item>
+            <Item Name="[Header]">*(((PTR_ObjHeader)this)-1)</Item>
+        </Expand>
+    </Type>
+    <Type Name="ObjHeader">
+        <Expand>
+            <Item Name="[Object]">(PTR_Object)(this + 1)</Item>
+            <Item Name="[SyncBlock]" Condition="(m_SyncBlockValue.m_val &amp; 0x0C000000) == 0x08000000">g_pSyncTable [m_SyncBlockValue.m_val &amp; ((1&lt;&lt;26)-1)].m_SyncBlock</Item>
+        </Expand>
+    </Type>
+    <Type Name="MethodTable">
+        <Expand>
+            <Item Name="[Type Name]" Optional="true">debug_m_szClassName,s8</Item>
+        </Expand>
+    </Type>
 </AutoVisualizer>