feat(lldb debug info): deref pointer types for more accurate rust type classification
This commit is contained in:
parent
12eb1a0bce
commit
c39ebeaa0b
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue