about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authornilptr <nilptr.js@gmail.com>2025-08-10 22:43:08 +0800
committernilptr <nilptr.js@gmail.com>2025-08-17 21:15:18 +0800
commitc39ebeaa0b780afbeb40c8a42cc20bea861ca458 (patch)
tree1bb316c5021f644cc77d36fab29a766f07d84f16 /src
parent12eb1a0bce83b569f0500f0a78972a1102906264 (diff)
downloadrust-c39ebeaa0b780afbeb40c8a42cc20bea861ca458.tar.gz
rust-c39ebeaa0b780afbeb40c8a42cc20bea861ca458.zip
feat(lldb debug info): deref pointer types for more accurate rust type classification
Diffstat (limited to 'src')
-rw-r--r--src/etc/lldb_lookup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/lldb_lookup.py b/src/etc/lldb_lookup.py
index f4ea904b7f5..f43d2c6a725 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)