forked from decaf-emu/decaf-emu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvsdebuggervis.natvis
74 lines (70 loc) · 2.21 KB
/
vsdebuggervis.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!-- be_val 8 -->
<Type Name="be_val<unsigned char>">
<DisplayString>
{mValue}
</DisplayString>
</Type>
<Type Name="be_val<char>">
<DisplayString>
{mValue}
</DisplayString>
</Type>
<!-- be_val 16 -->
<Type Name="be_val<unsigned short>">
<DisplayString>
{(((mValue & 0xFF00) >> 8) |
((mValue & 0x00FF) << 8))}
</DisplayString>
</Type>
<Type Name="be_val<short>">
<DisplayString>
{(((mValue & 0xFF00) >> 8) |
((mValue & 0x00FF) << 8))}
</DisplayString>
</Type>
<!-- be_val 32 -->
<Type Name="be_val<unsigned int>">
<DisplayString>
{(((mValue & 0xFF000000) >> 24) |
((mValue & 0x00FF0000) >> 8) |
((mValue & 0x0000FF00) << 8) |
((mValue & 0x000000FF) << 24))}
</DisplayString>
</Type>
<Type Name="be_val<int>">
<DisplayString>
{(((mValue & 0xFF000000) >> 24) |
((mValue & 0x00FF0000) >> 8) |
((mValue & 0x0000FF00) << 8) |
((mValue & 0x000000FF) << 24))}
</DisplayString>
</Type>
<!-- p32 -->
<Type Name="p32<*, 0>">
<DisplayString>{ mValue }</DisplayString>
<Expand>
<ExpandedItem>
*($T1*)(gMemory.mBase + mValue)
</ExpandedItem>
</Expand>
</Type>
<!-- Big Endian p32 -->
<Type Name="p32<*, 1>">
<DisplayString>
{(((mValue & 0xFF000000) >> 24) |
((mValue & 0x00FF0000) >> 8) |
((mValue & 0x0000FF00) << 8) |
((mValue & 0x000000FF) << 24))}
</DisplayString>
<Expand>
<ExpandedItem>*($T1*)(gMemory.mBase +
(((mValue & 0xFF000000) >> 24) |
((mValue & 0x00FF0000) >> 8) |
((mValue & 0x0000FF00) << 8) |
((mValue & 0x000000FF) << 24)))
</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>