Skip to content

Commit e63e7da

Browse files
committed
[lldb] Fix StdUnorderedMapSynthProvider for GCC
1 parent 675be0d commit e63e7da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/examples/synthetic/gnu_libstdcpp.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ def extract_type(self):
6868
template_arg_num = type.GetNumberOfTemplateArguments() - 1
6969
allocator_type = type.GetTemplateArgumentType(template_arg_num)
7070
data_type = allocator_type.GetTemplateArgumentType(0)
71+
if data_type.IsValid():
72+
return data_type
73+
type = self.head.GetType()
74+
head_type = type.GetTypedefedType().GetTypedefedType()
75+
data_type = head_type.GetTemplateArgumentType(1)
7176
return data_type
7277

7378
def update(self):

0 commit comments

Comments
 (0)