From b96297f2ee3ed21aee934c84fcecd4a73f2ba753 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 2 Jan 2022 14:36:20 -0800 Subject: [PATCH] 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