Add VS debugger visualization file for xe::be

This commit is contained in:
Dr. Chat 2015-06-28 19:22:48 -05:00
parent 30e0c6dbb1
commit 7a34dbd5c7
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\X86GenInstrInfo_reduce.inc" />
<None Include="third_party\capstone\arch\X86\X86GenRegisterInfo.inc" /> <None Include="third_party\capstone\arch\X86\X86GenRegisterInfo.inc" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Natvis Include="xedebugger.natvis">
<SubType>Designer</SubType>
</Natvis>
</ItemGroup>
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<ProjectGuid>{0CE149F6-41C3-4224-9E57-C02E8C7CD312}</ProjectGuid> <ProjectGuid>{0CE149F6-41C3-4224-9E57-C02E8C7CD312}</ProjectGuid>
<Keyword>Win32Proj</Keyword> <Keyword>Win32Proj</Keyword>

View File

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