-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic natvis visualizations for some VM types #52853
Changes from 4 commits
6b8aece
cdeedfa
7534150
a248c45
8a0ceb3
1a02761
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Licensed to the .NET Foundation under one or more agreements. | ||
The .NET Foundation licenses this file to you under the MIT license. | ||
--> | ||
|
||
|
||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
<Type Name="SString"> | ||
<DisplayString Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_EMPTY">[Empty]</DisplayString> | ||
<DisplayString Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_UNICODE">[Unicode] {m_buffer,su}</DisplayString> | ||
<DisplayString Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_ASCII">[ASCII] {m_buffer,s}</DisplayString> | ||
<DisplayString Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_UTF8">[UTF8] {m_buffer,s8}</DisplayString> | ||
<DisplayString Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_ANSI">[ANSI] {m_buffer,s}</DisplayString> | ||
<StringView Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_UNICODE">m_buffer,su</StringView> | ||
<StringView Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_ASCII">m_buffer,s</StringView> | ||
<StringView Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_UTF8">m_buffer,s8</StringView> | ||
<StringView Condition="(m_flags & REPRESENTATION_MASK) == REPRESENTATION_ANSI">m_buffer,s</StringView> | ||
</Type> | ||
</AutoVisualizer> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Licensed to the .NET Foundation under one or more agreements. | ||
The .NET Foundation licenses this file to you under the MIT license. | ||
--> | ||
|
||
|
||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
<Type Name="HolderBase<*>"> | ||
<DisplayString>{*m_value}</DisplayString> | ||
jkoritzinsky marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<Expand> | ||
<ExpandedItem>m_value</ExpandedItem> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok..And then what is the purpose of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
</Expand> | ||
</Type> | ||
</AutoVisualizer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose of
PRIVATE
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
PRIVATE
makes sure to keep the natvis linked only to the jit dlls and not to dlls that link to the jit dlls in the CMake build. See here in the CMake docs: https://cmake.org/cmake/help/latest/command/target_link_libraries.html#id3