File tree 3 files changed +20
-5
lines changed
3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<AutoVisualizer xmlns =" http://schemas.microsoft.com/vstudio/debugger/natvis/2010" >
3
3
<Type Name =" str" >
4
- <DisplayString >{data_ptr,[length]s8}</DisplayString >
5
- <StringView >data_ptr,[length]s8</StringView >
4
+ <DisplayString >{(char*) data_ptr,[length]s8}</DisplayString >
5
+ <StringView >(char*) data_ptr,[length]s8</StringView >
6
6
<Expand >
7
7
<Item Name =" [len]" ExcludeView =" simple" >length</Item >
8
8
<Synthetic Name =" [chars]" >
Original file line number Diff line number Diff line change 74
74
</Type >
75
75
76
76
<Type Name =" std::ffi::c_str::CString" >
77
- <DisplayString >{inner.data_ptr,s }</DisplayString >
77
+ <DisplayString >{(char*) inner.data_ptr}</DisplayString >
78
78
<Expand >
79
79
<Synthetic Name =" [chars]" >
80
80
<Expand >
101
101
</Synthetic >
102
102
</Expand >
103
103
</Type >
104
+
105
+ <Type Name =" std::ffi::os_str::OsString" >
106
+ <DisplayString >{(char*)inner.inner.bytes.buf.ptr.pointer,[inner.inner.bytes.len]}</DisplayString >
107
+ <Expand >
108
+ <Synthetic Name =" [chars]" >
109
+ <Expand >
110
+ <ArrayItems >
111
+ <Size >inner.inner.bytes.len</Size >
112
+ <ValuePointer >(char*)inner.inner.bytes.buf.ptr.pointer</ValuePointer >
113
+ </ArrayItems >
114
+ </Expand >
115
+ </Synthetic >
116
+ </Expand >
117
+ </Type >
104
118
</AutoVisualizer >
Original file line number Diff line number Diff line change 111
111
// cdb-check: [11] : 33 '!' [Type: char]
112
112
113
113
// cdb-command: dx os_string
114
- // cdb-check:os_string [Type: [...]::OsString]
115
- // NOTE: OsString doesn't have a .natvis entry yet.
114
+ // cdb-check:os_string : "IAMA OS string 😃" [Type: std::ffi::os_str::OsString]
115
+ // cdb-check: [<Raw View>] [Type: std::ffi::os_str::OsString]
116
+ // cdb-check: [chars]
116
117
117
118
// cdb-command: dx some
118
119
// cdb-check:some : Some [Type: enum$<core::option::Option<i16> >]
You can’t perform that action at this time.
0 commit comments