Merge pull request #306 from DrChat/vs_natvis

Add VS debugger visualization file
This commit is contained in:
Ben Vanik 2015-06-28 17:26:26 -07:00
commit 1d7606097a
3 changed files with 42 additions and 0 deletions

View File

@ -523,6 +523,11 @@
<None Include="third_party\capstone\arch\X86\X86GenInstrInfo_reduce.inc" />
<None Include="third_party\capstone\arch\X86\X86GenRegisterInfo.inc" />
</ItemGroup>
<ItemGroup>
<Natvis Include="xedebugger.natvis">
<SubType>Designer</SubType>
</Natvis>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{0CE149F6-41C3-4224-9E57-C02E8C7CD312}</ProjectGuid>
<Keyword>Win32Proj</Keyword>

View File

@ -1545,4 +1545,7 @@
<Filter>third_party\capstone\arch\X86</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Natvis Include="xedebugger.natvis" />
</ItemGroup>
</Project>

34
vsdebuggervis.natvis Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- Automatically convert endianness for xe::be -->
<Type Name="xe::be&lt;unsigned int&gt;">
<DisplayString>
{(((value &amp; 0xFF000000) &gt;&gt; 24) |
((value &amp; 0x00FF0000) &gt;&gt; 8) |
((value &amp; 0x0000FF00) &lt;&lt; 8) |
((value &amp; 0x000000FF) &lt;&lt; 24))}
</DisplayString>
</Type>
<Type Name="xe::be&lt;int&gt;">
<DisplayString>
{(((value &amp; 0xFF000000) &gt;&gt; 24) |
((value &amp; 0x00FF0000) &gt;&gt; 8) |
((value &amp; 0x0000FF00) &lt;&lt; 8) |
((value &amp; 0x000000FF) &lt;&lt; 24))}
</DisplayString>
</Type>
<Type Name="xe::be&lt;unsigned short&gt;">
<DisplayString>
{(((value &amp; 0xFF00) &gt;&gt; 8) |
((value &amp; 0x00FF) &lt;&lt; 8))}
</DisplayString>
</Type>
<Type Name="xe::be&lt;short&gt;">
<DisplayString>
{(((value &amp; 0xFF00) &gt;&gt; 8) |
((value &amp; 0x00FF) &lt;&lt; 8))}
</DisplayString>
</Type>
</AutoVisualizer>