Skip to content

Commit c39ebea

Browse files
committed
feat(lldb debug info): deref pointer types for more accurate rust type classification
1 parent 12eb1a0 commit c39ebea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/etc/lldb_lookup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ def is_hashbrown_hashmap(hash_map: lldb.SBValue) -> bool:
1010

1111

1212
def classify_rust_type(type: lldb.SBType) -> str:
13+
if type.IsPointerType():
14+
type = type.GetPointeeType()
15+
1316
type_class = type.GetTypeClass()
1417
if type_class == lldb.eTypeClassStruct:
1518
return classify_struct(type.name, type.fields)

0 commit comments

Comments
 (0)