Fix issue with !sos maddress (#3868)
authorLee Culver <leculver@microsoft.com>
Mon, 8 May 2023 22:50:30 +0000 (15:50 -0700)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 22:50:30 +0000 (15:50 -0700)
Previous refactoring accidently eliminated the case where the CLR region perfectly overlapped the memory region.

src/Microsoft.Diagnostics.ExtensionCommands/NativeAddressHelper.cs

index 9658d026e35c8f6c52d17d7c0ee21c7bdf81dc05..a8e46ed7c3951f94c0f8c308fe43a93c6892d1ac 100644 (file)
@@ -262,8 +262,11 @@ namespace Microsoft.Diagnostics.ExtensionCommands
                                             region.ClrMemoryKind = mem.Kind;
                                         }
                                     }
+                                    else
+                                    {
+                                        SetRegionKindWithWarning(mem, region);
+                                    }
                                 }
-
                             }
                         }
                     }