From 86cc5cb468382868a4d3d110c5887a6b3507188c Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Thu, 6 Jul 2023 00:18:59 +0800 Subject: [PATCH 1/2] Simplify visualizer for `mutex` --- stl/debugger/STL.natvis | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/stl/debugger/STL.natvis b/stl/debugger/STL.natvis index 096e2756d5c..43647da2db3 100644 --- a/stl/debugger/STL.natvis +++ b/stl/debugger/STL.natvis @@ -1584,15 +1584,11 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - unlocked - locked - unlocked - locked - - *(long *)((char *)(&_Mtx_storage) + 40) - *(long *)((char *)(&_Mtx_storage) + 72) - *(int *)((char *)(&_Mtx_storage) + 44) - *(int *)((char *)(&_Mtx_storage) + 76) + unlocked + locked + + _Mtx_storage_mirror._Thread_id + _Mtx_storage_mirror._Count From 8551939c4471fe4d043af885b68b3ccccd822223 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 21 Jul 2023 08:07:49 +0800 Subject: [PATCH 2/2] Change `_Mtx_storage_mirror` to `_Mtx_storage` --- stl/debugger/STL.natvis | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stl/debugger/STL.natvis b/stl/debugger/STL.natvis index 43647da2db3..a3047ef51d3 100644 --- a/stl/debugger/STL.natvis +++ b/stl/debugger/STL.natvis @@ -1584,11 +1584,11 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - unlocked - locked + unlocked + locked - _Mtx_storage_mirror._Thread_id - _Mtx_storage_mirror._Count + _Mtx_storage._Thread_id + _Mtx_storage._Count