diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /third_party/rust/windows-core/windows.natvis | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/windows-core/windows.natvis')
-rw-r--r-- | third_party/rust/windows-core/windows.natvis | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/third_party/rust/windows-core/windows.natvis b/third_party/rust/windows-core/windows.natvis new file mode 100644 index 0000000000..d7dcabd321 --- /dev/null +++ b/third_party/rust/windows-core/windows.natvis @@ -0,0 +1,84 @@ +<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> + <Type Name="windows_core::array::Array<*>"> + <DisplayString>{{ len={len} }}</DisplayString> + + <Expand> + <Item Name="[len]">len</Item> + <ArrayItems> + <Size>len</Size> + <ValuePointer>data</ValuePointer> + </ArrayItems> + </Expand> + </Type> + + <Type Name="windows_core::error::Error"> + <Expand> + <ExpandedItem>code</ExpandedItem> + <Item Name="[info]">info</Item> + </Expand> + </Type> + + <Type Name="windows_core::hresult::HRESULT"> + <DisplayString>{(HRESULT)__0}</DisplayString> + </Type> + + <Type Name="windows_core::imp::ref_count::RefCount"> + <DisplayString>{__0}</DisplayString> + </Type> + + <Type Name="windows_core::strings::hstring::HSTRING"> + <Intrinsic Name="header" Expression="*((windows_core::strings::hstring::Header**)this)" ReturnType="windows_core::strings::hstring::Header *" /> + <Intrinsic Name="is_empty" Expression="header() == nullptr" /> + <DisplayString Condition="is_empty()">""</DisplayString> + <DisplayString>{((char16_t*)header()->data),[header()->len]su}</DisplayString> + + <Expand> + <Item Name="[len]">is_empty() ? (unsigned int)0 : header()->len</Item> + <Item Name="[ref_count]" Condition="!is_empty()">header()->count</Item> + <Item Name="[flags]" Condition="!is_empty()">header()->flags</Item> + <Synthetic Name="[chars]" Condition="!is_empty()"> + <Expand> + <ArrayItems> + <Size>header()->len</Size> + <ValuePointer>(char16_t*)header()->data</ValuePointer> + </ArrayItems> + </Expand> + </Synthetic> + </Expand> + </Type> + + <Type Name="windows_core::strings::pstr::PSTR"> + <AlternativeType Name="windows_core::strings::pcstr::PCSTR" /> + <Intrinsic Name="len" Expression="strlen(((char*)__0))" /> + <DisplayString>{(char*)__0,[len()]s8}</DisplayString> + <Expand> + <Item Name="[len]">len()</Item> + <Synthetic Name="[chars]"> + <Expand> + <ArrayItems> + <Size>len()</Size> + <ValuePointer>(char*)__0</ValuePointer> + </ArrayItems> + </Expand> + </Synthetic> + </Expand> + </Type> + + <Type Name="windows_core::strings::pwstr::PWSTR"> + <AlternativeType Name="windows_core::strings::pcwstr::PCWSTR" /> + <Intrinsic Name="len" Expression="wcslen(((WCHAR*)__0))" /> + <DisplayString>{(char16_t*)__0,[len()]su}</DisplayString> + + <Expand> + <Item Name="[len]">len()</Item> + <Synthetic Name="[chars]"> + <Expand> + <ArrayItems> + <Size>len()</Size> + <ValuePointer>(char16_t*)__0</ValuePointer> + </ArrayItems> + </Expand> + </Synthetic> + </Expand> + </Type> +</AutoVisualizer> |