-
Notifications
You must be signed in to change notification settings - Fork 0
/
wany.natvis
90 lines (90 loc) · 5.23 KB
/
wany.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
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="uf::impl::sview<*>::ptr">
<DisplayString Condition=" p->owning">{p->data_,[p->length]s} ({p->length})</DisplayString>
<DisplayString Condition="!p->owning">{p->ptr_, [p->length]s} ({p->length})</DisplayString>
</Type>
<Type Name="uf::impl::chunk<*>">
<DisplayString Condition=" root.p->owning && root.p->writable._Storage._Value && len==4">{root.p->data_+off,[len]s} ({(int(root.p->data_[off])<<24)+(int(root.p->data_[off+1])<<16)+(int(root.p->data_[off+2])<<8)+int(root.p->data_[off+3])})</DisplayString>
<DisplayString Condition="!root.p->owning && root.p->writable._Storage._Value && len==4">{root.p->ptr_ +off,[len]s} ({(int(root.p->ptr_[off] )<<24)+(int(root.p->ptr_[off+1] )<<16)+(int(root.p->ptr_[off+2] )<<8)+int(root.p->ptr_[off+3])})</DisplayString>
<DisplayString Condition=" root.p->owning &&!root.p->writable._Storage._Value && len==4">{root.p->data_+off,[len]s} ({(int(root.p->data_[off])<<24)+(int(root.p->data_[off+1])<<16)+(int(root.p->data_[off+2])<<8)+int(root.p->data_[off+3])})</DisplayString>
<DisplayString Condition="!root.p->owning &&!root.p->writable._Storage._Value && len==4">{root.p->ptr_ +off,[len]s} ({(int(root.p->ptr_[off] )<<24)+(int(root.p->ptr_[off+1] )<<16)+(int(root.p->ptr_[off+2] )<<8)+int(root.p->ptr_[off+3])})</DisplayString>
<DisplayString Condition=" root.p->owning && root.p->writable._Storage._Value">{root.p->data_+off,[len]s}*</DisplayString>
<DisplayString Condition="!root.p->owning && root.p->writable._Storage._Value">{root.p->ptr_ +off,[len]s}*</DisplayString>
<DisplayString Condition=" root.p->owning &&!root.p->writable._Storage._Value">{root.p->data_+off,[len]s}</DisplayString>
<DisplayString Condition="!root.p->owning &&!root.p->writable._Storage._Value">{root.p->ptr_ +off,[len]s}</DisplayString>
<Expand>
<Item Name="[size]">len</Item>
<Item Name="[addr]">root.p->owning ? root.p->data_+off : root.p->ptr_+off</Item>
<IndexListItems>
<Size>len</Size>
<ValueNode>((root.p->owning ? root.p->data_+off : root.p->ptr_+off)[$i])</ValueNode>
</IndexListItems>
</Expand>
</Type>
<Type Name="uf::impl::chunk<*>::ptr">
<DisplayString>{*p}</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="5000" ExcludeView="Test">
<Variable Name="T" InitialValue="p" />
<Loop>
<Break Condition="T == nullptr"/>
<Item>*T</Item>
<Exec>T = T->next.p</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
<Type Name="uf::impl::wview<*>">
<DisplayString>Type={tbegin}... Value={vbegin}...</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="5000" ExcludeView="Test">
<Variable Name="T" InitialValue="tbegin.p" />
<Variable Name="TE" InitialValue="tend.p" />
<Variable Name="i" InitialValue="0"/>
<Loop>
<Break Condition="T == TE"/>
<Item Name="Type {i}">*T</Item>
<Exec>T = T->next.p</Exec>
<Exec>i++</Exec>
</Loop>
<Exec>T = vbegin.p</Exec>
<Exec>TE = vend.p</Exec>
<Exec>i=0</Exec>
<Loop>
<Break Condition="T == TE"/>
<Item Name="Value {i}">*T</Item>
<Exec>T = T->next.p</Exec>
<Exec>i++</Exec>
</Loop>
<Item Name="children">children</Item>
</CustomListItems>
</Expand>
</Type>
<Type Name="uf::impl::wview<*>::ptr">
<DisplayString>{*p}</DisplayString>
<Expand>
<CustomListItems MaxItemsPerView="5000" ExcludeView="Test">
<Variable Name="T" InitialValue="tbegin.p" />
<Variable Name="TE" InitialValue="tend.p" />
<Variable Name="i" InitialValue="0"/>
<Loop>
<Break Condition="T == TE"/>
<Item Name="Type {i}">*T</Item>
<Exec>T = T->next.p</Exec>
<Exec>i++</Exec>
</Loop>
<Exec>T = vbegin.p</Exec>
<Exec>TE = vend.p</Exec>
<Exec>i=0</Exec>
<Loop>
<Break Condition="T == TE"/>
<Item Name="Value {i}">*T</Item>
<Exec>T = T->next.p</Exec>
<Exec>i++</Exec>
</Loop>
<Item Name="children">p->children</Item>
</CustomListItems>
</Expand>
</Type>
</AutoVisualizer>