-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathlua54.natvis
174 lines (174 loc) · 9.79 KB
/
lua54.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="lua_State">
<DisplayString>[thread top=]{top-(ci->func+1)}</DisplayString>
<Expand>
<!--Item Name="[stack top]">top-(ci->func+1)</Item><IndexListItems><Size>top-(ci->func+1)+1</Size><ValueNode>ci->func[$i]</ValueNode></IndexListItems-->
<Item Name="[stack top]">top-(ci->func+1)</Item>
<CustomListItems ExcludeView="Test" MaxItemsPerView="100">
<Variable InitialValue="(top-(ci->func+1))+1" Name="i"/>
<Variable InitialValue="(top-(ci->func+1))+1" Name="siz_1"/>
<Loop>
<If Condition="i > 1">
<Exec>i--</Exec>
<Item Name="[{i}] [{i-siz_1}]">ci->func[i]</Item>
</If>
<Break Condition="i == 1"/>
</Loop>
</CustomListItems>
<Item Name="[registry]">l_G->l_registry</Item>
<!-- <Item Name="[globals]">l_gt</Item>-->
<Item Condition="ci->func->val.tt_!=0" Name="[call]">ci->func</Item>
<Item Name="[callinfo list]">"------------------------------------"</Item>
<LinkedListItems>
<!-- <Size>m_nElements</Size>-->
<HeadPointer>ci</HeadPointer>
<NextPointer>previous</NextPointer>
<ValueNode>this</ValueNode>
</LinkedListItems>
</Expand>
</Type>
<Type Name="Node">
<DisplayString>{u} = {i_val}</DisplayString>
<Expand>
<Item Name="[key]">u</Item>
<Item Name="[val]">i_val</Item>
</Expand>
</Type>
<Type Name="NodeKey">
<DisplayString Condition="(key_tt)==0">[nil]</DisplayString>
<DisplayString Condition="(key_tt)==3">[number]</DisplayString>
<DisplayString Condition="(key_tt)==1">[boolean] {(bool)(key_tt==17)}</DisplayString>
<DisplayString Condition="(key_tt)==2">[lightuserdata] {(void *)(key_val).p}</DisplayString>
<!--#define ttisinteger(o) checktag((o), LUA_TNUMINT)-->
<DisplayString Condition="(key_tt)==35">[int] {(lua_Integer)(key_val).i}</DisplayString>
<DisplayString Condition="(key_tt)==19">[number] {(lua_Number)((key_val).n)}</DisplayString>
<DisplayString Condition="(key_tt&0x0f)==4">[string] {((struct TString *)(key_val.gc))}</DisplayString>
<DisplayString Condition="(key_tt)==69">[table] {((struct Table *)(key_val).gc)}</DisplayString>
<!--ttisCclosure 64+48+6-->
<DisplayString Condition="(key_tt)==118">[cclosuse] {(((union Closure *)(key_val).gc))->c}</DisplayString>
<!--ttisLclosure 64+16+6 -->
<DisplayString Condition="(key_tt)==86">[lclosuse] {(((union Closure *)(key_val).gc))->l}</DisplayString>
<DisplayString Condition="(key_tt&0x1f)==22">[closure] {((union Closure *)(key_val).gc)}</DisplayString>
<!--32+6-->
<DisplayString Condition="(key_tt)==38">[lc_function] {((union Closure *)(key_val).gc)}</DisplayString>
<DisplayString Condition="(key_tt&0xf)==6">[function] {key_val.p}</DisplayString>
<DisplayString Condition="(key_tt)==71">[userdata] {((struct Udata *)(key_val).gc)}</DisplayString>
<DisplayString Condition="(key_tt)==72">[thread] {((struct lua_State *)(key_val).gc)}</DisplayString>
<DisplayString>[unknown]</DisplayString>
<Expand>
<Item Name="[lua_TValue type]">key_tt&0xf</Item>
<Item Name="[lua_TValue tag]">key_tt</Item>
<Item Name="[GCUnion]">(key_val.gc)</Item>
<Item Condition="(key_tt)==2" Name="[lightuserdata]">(const char *)key_val.p</Item>
<Item Condition="(key_tt)==69" Name="[table]">((struct Table *)(key_val).gc)</Item>
<Item Condition="(key_tt&0x1f)==22" Name="[closure]">((union Closure *)(key_val).gc)</Item>
<Item Condition="(key_tt)==71" Name="[userdata]">((struct Udata *)(key_val).gc)</Item>
<Item Condition="(key_tt)==72" Name="[thread]">((struct lua_State *)(key_val).gc)</Item>
</Expand>
</Type>
<Type Name="StackValue">
<DisplayString>{val}</DisplayString>
</Type>
<Type Name="TValue">
<!--#define ttisnil(o) checktag((o), LUA_TNIL)-->
<DisplayString Condition="(tt_)==0">[nil]</DisplayString>
<DisplayString Condition="(tt_)==1">[boolean] {(bool)(tt_==17)}</DisplayString>
<DisplayString Condition="(tt_)==2">[lightuserdata] {(void *)(value_).p}</DisplayString>
<!--#define ttisinteger(o) checktag((o), LUA_TNUMINT)-->
<DisplayString Condition="(tt_)==35">[int] {(lua_Integer)(value_).i}</DisplayString>
<DisplayString Condition="(tt_)==19">[number] {(lua_Number)((value_).n)}</DisplayString>
<DisplayString Condition="(tt_&0x0f)==4">[string] {((struct TString *)(value_.gc))}</DisplayString>
<DisplayString Condition="(tt_)==69">[table] {((struct Table *)(value_).gc)}</DisplayString>
<!--ttisCclosure 64+48+6-->
<DisplayString Condition="(tt_)==118">[cclosuse] {(((union Closure *)(value_).gc))->c}</DisplayString>
<!--ttisLclosure 64+16+6 -->
<DisplayString Condition="(tt_)==86">[lclosuse] {(((union Closure *)(value_).gc))->l}</DisplayString>
<DisplayString Condition="(tt_&0x1f)==22">[closure] {((union Closure *)(value_).gc)}</DisplayString>
<!--32+6-->
<DisplayString Condition="(tt_)==38">[lc_function] {((union Closure *)(value_).gc)}</DisplayString>
<DisplayString Condition="(tt_&0xf)==6">[function] {value_.p}</DisplayString>
<DisplayString Condition="(tt_)==71">[userdata] {((struct Udata *)(value_).gc)}</DisplayString>
<DisplayString Condition="(tt_)==72">[thread] {((struct lua_State *)(value_).gc)}</DisplayString>
<DisplayString>[unknown]</DisplayString>
<Expand>
<Item Name="[lua_TValue type]">tt_&0xf</Item>
<Item Name="[lua_TValue tag]">tt_</Item>
<Item Name="[GCUnion]">(value_.gc)</Item>
<Item Condition="(tt_)==2" Name="[lightuserdata]">(const char *)value_.p</Item>
<Item Condition="(tt_)==69" Name="[table]">((struct Table *)(value_).gc)</Item>
<Item Condition="(tt_&0x1f)==22" Name="[closure]">((union Closure *)(value_).gc)</Item>
<Item Condition="(tt_)==71" Name="[userdata]">((struct Udata *)(value_).gc)</Item>
<Item Condition="(tt_)==72" Name="[thread]">((struct lua_State *)(value_).gc)</Item>
</Expand>
</Type>
<Type Name="Udata">
<DisplayString>userdata</DisplayString>
</Type>
<Type Name="CClosure">
<DisplayString>{f}</DisplayString>
</Type>
<Type Name="LClosure">
<DisplayString Condition="p->source">{(p->source) } : {(p->linedefined)} )</DisplayString>
<DisplayString>=?</DisplayString>
<Expand>
<Item Condition="p->source" Name="source">(p->source)</Item>
<Item Name="linedefined">(p->linedefined)</Item>
<Item Name="lastlinedefined">(p->lastlinedefined)</Item>
<Item Condition="p->linedefined == 0" Name="what">"main"</Item>
<Item Condition="p->linedefined != 0" Name="what">"Lua"</Item>
</Expand>
</Type>
<Type Name="Closure">
<!--lclosuse 86-64-->
<DisplayString Condition="c.tt==22">{l}</DisplayString>
<!--cclosuse 118-64-->
<DisplayString Condition="c.tt==54">{c}</DisplayString>
<DisplayString>[tag]{c}{c.tt}</DisplayString>
<Expand>
<Item Name="[CClosure]">c</Item>
<Item Name="[LClosure]">l</Item>
</Expand>
</Type>
<Type Name="Table">
<DisplayString>table</DisplayString>
<Expand>
<Item Name="[array size]">alimit</Item>
<Item Condition="metatable!=0" Name="metatable">metatable</Item>
<IndexListItems>
<Size>alimit</Size>
<ValueNode>array[$i]</ValueNode>
</IndexListItems>
<Item Name="[hash size]">1<<lsizenode</Item>
<IndexListItems>
<Size>1<<lsizenode</Size>
<ValueNode>node[$i]</ValueNode>
</IndexListItems>
</Expand>
</Type>
<!--Type Name="TString"><DisplayString>{(char *)(&tsv+sizeof(*this)/sizeof(tsv)),s}</DisplayString></Type-->
<Type Name="TString">
<DisplayString>{(char *)(this)+8+sizeof(double)*2}</DisplayString>
</Type>
<Type Name="UTString">
<DisplayString>{(char *)(&tsv+sizeof(*this)/sizeof(tsv)),s}</DisplayString>
</Type>
<Type Name="TKey">
<DisplayString>{tvk}</DisplayString>
</Type>
<Type Name="CallInfo">
<!--ttisCclosure-->
<DisplayString Condition="(func->val.tt_)==118">[c_closure]{(((union Closure *)(func->val.value_).gc))->c}</DisplayString>
<!--ttisLclosure 64+16+6 -->
<DisplayString Condition="(func->val.tt_)==86">[l_closure]{(((union Closure *)(func->val.value_).gc))->l}</DisplayString>
<!--condition source:#define ttisclosure(o) ((rttype(o) & 0x1F) == LUA_TFUNCTION)-->
<DisplayString Condition="(func->val.tt_&0x1f)==22">{((union Closure *)(func->val.value_).gc)}</DisplayString>
<DisplayString Condition="(func->val.tt_)==38">[c_function]{((union Closure *)(func->val.value_).gc)}</DisplayString>
<DisplayString>{func},{u}</DisplayString>
<Expand>
<Item Name="[func]">func</Item>
<Item Name="[Closure]">((union Closure *)(func->val.value_).gc)</Item>
<Item Name="[union u]">u</Item>
</Expand>
</Type>
</AutoVisualizer>