Skip to content

Commit

Permalink
显示优化
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Jan 23, 2025
1 parent ecbaebe commit 6d66e0e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions compile/lua54.natvis
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?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.p-(ci-&gt;func.p+1)}</DisplayString>
<DisplayString>[stack top={top.p-(ci-&gt;func.p+1), d}]</DisplayString>
<Expand>
<Item Name="[stack top]">top.p-(ci-&gt;func.p+1)</Item>
<Item Name="[call]" Condition="ci->func.p->val.tt_!=0">ci-&gt;func.p</Item>
<Item Name="[callinfo]">"------------------------------------"</Item>
<Synthetic Name="[callinfo]">
<DisplayString>------------------------------------</DisplayString>
</Synthetic>
<LinkedListItems>
<HeadPointer>ci</HeadPointer>
<NextPointer>previous</NextPointer>
Expand Down Expand Up @@ -43,10 +45,10 @@
</Expand>
</Type>
<Type Name="CClosure">
<DisplayString>{f}</DisplayString>
<DisplayString>{f, na}</DisplayString>
</Type>
<Type Name="LClosure">
<DisplayString>{p}</DisplayString>
<DisplayString>{p, na}</DisplayString>
<Expand>
<ExpandedItem>p</ExpandedItem>
</Expand>
Expand All @@ -63,6 +65,6 @@
</Expand>
</Type>
<Type Name="TString">
<DisplayString>{(char *)(this)+8+sizeof(double)*2, na}</DisplayString>
<DisplayString>{(char *)(this)+8+sizeof(double)*2, sb}</DisplayString>
</Type>
</AutoVisualizer>

0 comments on commit 6d66e0e

Please sign in to comment.