mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
feat(lldb debug info): deref pointer types for more accurate rust type classification
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user