Merge pull request #306 from DrChat/vs_natvis
Add VS debugger visualization file
This commit is contained in:
commit
1d7606097a
|
@ -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>
|
||||
|
|
|
@ -1545,4 +1545,7 @@
|
|||
<Filter>third_party\capstone\arch\X86</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Natvis Include="xedebugger.natvis" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -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<unsigned int>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF000000) >> 24) |
|
||||
((value & 0x00FF0000) >> 8) |
|
||||
((value & 0x0000FF00) << 8) |
|
||||
((value & 0x000000FF) << 24))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
<Type Name="xe::be<int>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF000000) >> 24) |
|
||||
((value & 0x00FF0000) >> 8) |
|
||||
((value & 0x0000FF00) << 8) |
|
||||
((value & 0x000000FF) << 24))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="xe::be<unsigned short>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF00) >> 8) |
|
||||
((value & 0x00FF) << 8))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
<Type Name="xe::be<short>">
|
||||
<DisplayString>
|
||||
{(((value & 0xFF00) >> 8) |
|
||||
((value & 0x00FF) << 8))}
|
||||
</DisplayString>
|
||||
</Type>
|
||||
</AutoVisualizer>
|
Loading…
Reference in New Issue