[Lldb-commits] [lldb] [lldb] Fix StdUnorderedMapSynthProvider for GCC (PR #164251)
Sergei Druzhkov via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 21 10:17:43 PDT 2025
https://github.com/DrSergei updated https://github.com/llvm/llvm-project/pull/164251
>From efe6fbd8c3aae0889bda2ec403a6baa64cae13f5 Mon Sep 17 00:00:00 2001
From: Druzhkov Sergei <serzhdruzhok at gmail.com>
Date: Mon, 20 Oct 2025 15:45:30 +0300
Subject: [PATCH] [lldb] Fix StdUnorderedMapSynthProvider for GCC
---
lldb/examples/synthetic/gnu_libstdcpp.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lldb/examples/synthetic/gnu_libstdcpp.py b/lldb/examples/synthetic/gnu_libstdcpp.py
index f42a009c21f48..8a41ddff9b679 100644
--- a/lldb/examples/synthetic/gnu_libstdcpp.py
+++ b/lldb/examples/synthetic/gnu_libstdcpp.py
@@ -63,11 +63,8 @@ def __init__(self, valobj, dict):
self.count = None
def extract_type(self):
- type = self.valobj.GetType()
- # The last template argument is the allocator type.
- template_arg_num = type.GetNumberOfTemplateArguments() - 1
- allocator_type = type.GetTemplateArgumentType(template_arg_num)
- data_type = allocator_type.GetTemplateArgumentType(0)
+ head_type = self.head.GetType().GetCanonicalType()
+ data_type = head_type.GetTemplateArgumentType(1)
return data_type
def update(self):
More information about the lldb-commits
mailing list