diff options
| author | nilptr <nilptr.js@gmail.com> | 2025-08-10 22:43:08 +0800 |
|---|---|---|
| committer | nilptr <nilptr.js@gmail.com> | 2025-08-17 21:15:18 +0800 |
| commit | c39ebeaa0b780afbeb40c8a42cc20bea861ca458 (patch) | |
| tree | 1bb316c5021f644cc77d36fab29a766f07d84f16 /src | |
| parent | 12eb1a0bce83b569f0500f0a78972a1102906264 (diff) | |
| download | rust-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.py | 3 |
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) |
