feat(lldb debug info): deref pointer types for more accurate rust type classification

This commit is contained in:
nilptr 2025-08-10 22:43:08 +08:00
parent 12eb1a0bce
commit c39ebeaa0b

View file

@ -10,6 +10,9 @@ def is_hashbrown_hashmap(hash_map: lldb.SBValue) -> bool:
def classify_rust_type(type: lldb.SBType) -> str:
if type.IsPointerType():
type = type.GetPointeeType()
type_class = type.GetTypeClass()
if type_class == lldb.eTypeClassStruct:
return classify_struct(type.name, type.fields)