From c39ebeaa0b780afbeb40c8a42cc20bea861ca458 Mon Sep 17 00:00:00 2001 From: nilptr Date: Sun, 10 Aug 2025 22:43:08 +0800 Subject: [PATCH] feat(lldb debug info): deref pointer types for more accurate rust type classification --- src/etc/lldb_lookup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/etc/lldb_lookup.py b/src/etc/lldb_lookup.py index f4ea904b7f50..f43d2c6a7252 100644 --- a/src/etc/lldb_lookup.py +++ b/src/etc/lldb_lookup.py @@ -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)