Title: [266811] trunk/Tools
- Revision
- 266811
- Author
- hironori.fu...@sony.com
- Date
- 2020-09-09 20:15:42 -0700 (Wed, 09 Sep 2020)
Log Message
Add Visual Studio debugger custom views for NeverDestroyed, LazyNeverDestroyed, VectorBufferBase, Optional, and StringView
https://bugs.webkit.org/show_bug.cgi?id=216304
Reviewed by Don Olmstead.
* VisualStudio/WebKit.natvis:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (266810 => 266811)
--- trunk/Tools/ChangeLog 2020-09-10 02:51:41 UTC (rev 266810)
+++ trunk/Tools/ChangeLog 2020-09-10 03:15:42 UTC (rev 266811)
@@ -1,3 +1,12 @@
+2020-09-09 Fujii Hironori <hironori.fu...@sony.com>
+
+ Add Visual Studio debugger custom views for NeverDestroyed, LazyNeverDestroyed, VectorBufferBase, Optional, and StringView
+ https://bugs.webkit.org/show_bug.cgi?id=216304
+
+ Reviewed by Don Olmstead.
+
+ * VisualStudio/WebKit.natvis:
+
2020-09-09 Lauro Moura <lmo...@igalia.com>
kill-old-processes: Avoid calling kill command with empty string with GNU xargs
Modified: trunk/Tools/VisualStudio/WebKit.natvis (266810 => 266811)
--- trunk/Tools/VisualStudio/WebKit.natvis 2020-09-10 02:51:41 UTC (rev 266810)
+++ trunk/Tools/VisualStudio/WebKit.natvis 2020-09-10 03:15:42 UTC (rev 266811)
@@ -40,6 +40,15 @@
<DisplayString>not supported ({m_hashAndFlags})</DisplayString>
</Type>
+ <Type Name="WTF::StringView">
+ <DisplayString Condition="m_is8Bit">
+ {m_characters,[m_length]s}
+ </DisplayString>
+ <DisplayString Condition="!m_is8Bit">
+ {m_characters,[m_length]su}
+ </DisplayString>
+ </Type>
+
<Type Name="WTF::String">
<DisplayString>{m_impl}</DisplayString>
</Type>
@@ -60,6 +69,20 @@
<DisplayString>{m_string} (Atom)</DisplayString>
</Type>
+ <Type Name="WTF::NeverDestroyed<*,*>">
+ <DisplayString>{*($T1 *)this}</DisplayString>
+ <Expand>
+ <ExpandedItem>*($T1 *)this</ExpandedItem>
+ </Expand>
+ </Type>
+
+ <Type Name="WTF::LazyNeverDestroyed<*,*>">
+ <DisplayString>{*($T1 *)this}</DisplayString>
+ <Expand>
+ <ExpandedItem>*($T1 *)this</ExpandedItem>
+ </Expand>
+ </Type>
+
<Type Name="PAL::SessionID">
<DisplayString>{m_identifier}</DisplayString>
</Type>
@@ -68,10 +91,31 @@
<DisplayString>{m_identifier}</DisplayString>
</Type>
+ <Type Name="WTF::Optional<*>">
+ <Intrinsic Name="has_value" _expression_="init_"/>
+ <Intrinsic Name="value" _expression_="storage_.value_"/>
+ <DisplayString Condition="!has_value()">nullopt</DisplayString>
+ <DisplayString Condition="has_value()">{value()}</DisplayString>
+ <Expand>
+ <Item Condition="has_value()" Name="value">value()</Item>
+ </Expand>
+ </Type>
+
<Type Name="WTF::OptionSet<*>">
<DisplayString>{m_storage,x}</DisplayString>
</Type>
+ <Type Name="WTF::VectorBufferBase<*,*>">
+ <DisplayString>{{ size={m_size} }}</DisplayString>
+ <Expand>
+ <Item Name="[capacity]" ExcludeView="simple">m_capacity</Item>
+ <ArrayItems>
+ <Size>m_size</Size>
+ <ValuePointer>m_buffer</ValuePointer>
+ </ArrayItems>
+ </Expand>
+ </Type>
+
<Type Name="WebCore::IntSize">
<DisplayString>({m_width} x {m_height})</DisplayString>
</Type>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes