Skip to content

Commit ecbaebe

Browse files
committed
兼容一些特殊清空
1 parent 9286bb4 commit ecbaebe

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

compile/lua54.natvis

+8-6
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
<!-- light C function -->
1818
<DisplayString Condition="(func.p->val.tt_) == 0x16">{func.p-&gt;val.value_.f, na}</DisplayString>
1919
<!-- Lua closure -->
20-
<DisplayString Condition="(func.p->val.tt_) == 0x46">{((char *)((GCUnion *)(func.p-&gt;val.value_.gc))-&gt;cl.l.p-&gt;source)+8+sizeof(double)*2, na}</DisplayString>
20+
<DisplayString Condition="(func.p->val.tt_) == 0x46">{((Closure *)(func.p-&gt;val.value_.gc))-&gt;l, na}</DisplayString>
2121
<!-- C closure -->
22-
<DisplayString Condition="(func.p->val.tt_) == 0x66">{((GCUnion *)(func.p-&gt;val.value_.gc))-&gt;cl.c.f, na}</DisplayString>
22+
<DisplayString Condition="(func.p->val.tt_) == 0x66">{((Closure *)(func.p-&gt;val.value_.gc))-&gt;c, na}</DisplayString>
23+
<!-- EOF -->
24+
<DisplayString Condition="(func.p->val.tt_) == 0x00">&lt;---Stack Bottom---&gt;</DisplayString>
2325
<Expand>
2426
<ExpandedItem>func</ExpandedItem>
2527
</Expand>
@@ -32,12 +34,12 @@
3234
</Type>
3335
<Type Name="TValue">
3436
<DisplayString Condition="tt_ == 0x16">{value_.f, na}</DisplayString>
35-
<DisplayString Condition="tt_ == 0x46">{((GCUnion *)(value_.gc))-&gt;cl.l.p, na}</DisplayString>
36-
<DisplayString Condition="tt_ == 0x66">{((GCUnion *)(value_.gc))-&gt;cl.c.f, na}</DisplayString>
37+
<DisplayString Condition="tt_ == 0x46">{((Closure *)(value_.gc))-&gt;l, na}</DisplayString>
38+
<DisplayString Condition="tt_ == 0x66">{((Closure *)(value_.gc))-&gt;c, na}</DisplayString>
3739
<Expand>
3840
<ExpandedItem Condition="tt_ == 0x16">value_.f</ExpandedItem>
39-
<ExpandedItem Condition="tt_ == 0x46">((GCUnion *)(value_.gc))-&gt;cl.l</ExpandedItem>
40-
<ExpandedItem Condition="tt_ == 0x66">((GCUnion *)(value_.gc))-&gt;cl.c</ExpandedItem>
41+
<ExpandedItem Condition="tt_ == 0x46">((Closure *)(value_.gc))-&gt;l</ExpandedItem>
42+
<ExpandedItem Condition="tt_ == 0x66">((Closure *)(value_.gc))-&gt;c</ExpandedItem>
4143
</Expand>
4244
</Type>
4345
<Type Name="CClosure">

0 commit comments

Comments
 (0)