From b96297f2ee3ed21aee934c84fcecd4a73f2ba753 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 2 Jan 2022 14:36:20 -0800 Subject: [PATCH 1/2] Improve BitField natvis Now, enums are properly displayed, and BitFieldArray is also displayed nicely. Signed values also work correctly, and 1-bit fields are not treated as bools unless the bitfield is explicitly marked as a bool. --- Source/Core/Common/BitField.natvis | 71 ++++++++++++++++-------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/Source/Core/Common/BitField.natvis b/Source/Core/Common/BitField.natvis index 1eda338924..4d2a309199 100644 --- a/Source/Core/Common/BitField.natvis +++ b/Source/Core/Common/BitField.natvis @@ -11,61 +11,64 @@ This is a re-implementation of the abstract bitfield class' algrothm (in BitField.h) for Visual Studio to use for pretty-printing during debugging. --> - - - > $T1) & ((1 << $T2) - 1)}]]> + + > $T1) & ((1 << $T2) - 1))}]]> $T1 $T2 + + + + + $T3 + > ($T1 + $T2*$i)) & ((1 << $T2) - 1))]]> + + + $T1 + $T2 + $T3 + + - + + + + + + - - > $T1) & ((1 << ($T2-1)) - 1))}]]> + + > $T1) & ((1 << ($T2-1)) - 1)))}]]> - > $T1) & ((1 << ($T2-1)) - 1)}]]> + > $T1) & ((1 << ($T2-1)) - 1))}]]> $T1 $T2 - - - - > $T1) & ((1 << ($T2-1)) - 1))}]]> - - > $T1) & ((1 << ($T2-1)) - 1)}]]> - - $T1 - $T2 - - - - - > $T1) & ((1 << ($T2-1)) - 1))}]]> - - > $T1) & ((1 << ($T2-1)) - 1)}]]> - - $T1 - $T2 - - - - - > $T1) & ((1 << ($T2-1)) - 1))}]]> - - > $T1) & ((1 << ($T2-1)) - 1)}]]> + + + + + + + $T3 + + > ($T1 + $T2*$i)) & ((1 << ($T2-1)) - 1)))]]> + + > ($T1 + $T2*$i)) & ((1 << ($T2-1)) - 1))]]> + $T1 $T2 + $T3 From 8e2b06906b8929c3c6a23b8243cb83167c994caf Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 2 Jan 2022 15:36:47 -0800 Subject: [PATCH 2/2] Create EnumMap natvis --- Source/Core/Common/EnumMap.natvis | 30 ++++++++++++++++++++++++++++++ Source/Core/DolphinLib.props | 1 + 2 files changed, 31 insertions(+) create mode 100644 Source/Core/Common/EnumMap.natvis diff --git a/Source/Core/Common/EnumMap.natvis b/Source/Core/Common/EnumMap.natvis new file mode 100644 index 0000000000..7d1b261890 --- /dev/null +++ b/Source/Core/Common/EnumMap.natvis @@ -0,0 +1,30 @@ + + + + + + + + + + + + $T2 + 1 + + + m_array[i] + i++ + + + + + diff --git a/Source/Core/DolphinLib.props b/Source/Core/DolphinLib.props index 0940466a2a..af316ab9cf 100644 --- a/Source/Core/DolphinLib.props +++ b/Source/Core/DolphinLib.props @@ -1240,5 +1240,6 @@ +