From 62d944fd12fee6ffffe8e0653e08440db95bdea2 Mon Sep 17 00:00:00 2001 From: Francisco Ferreira Date: Wed, 24 Dec 2025 15:31:50 +0000 Subject: [PATCH] Fix name for enum keys in a map holding structs When a map has enum as keys and any type of struct as values, the enum value that was used for the key would be replaced as if it was base class. As the VariableInformation class has a constructor that receives the names directly from the map, use that information to not allow the name override. --- src/MIDebugEngine/Engine.Impl/Variables.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MIDebugEngine/Engine.Impl/Variables.cs b/src/MIDebugEngine/Engine.Impl/Variables.cs index 25d5a6cdf..95821b167 100644 --- a/src/MIDebugEngine/Engine.Impl/Variables.cs +++ b/src/MIDebugEngine/Engine.Impl/Variables.cs @@ -272,7 +272,7 @@ private VariableInformation(TupleValue results, VariableInformation parent, stri int index; - if (!results.Contains("value") && (Name == TypeName || Name.Contains("::"))) + if (!results.Contains("value") && (Name == TypeName || (Name.Contains("::") && name == null))) { // base classes show up with no value and exp==type // (sometimes underlying debugger does not follow this convention, when using typedefs in templated types so look for "::" in the field name too)