We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d6f0d4 commit 6f0e667Copy full SHA for 6f0e667
src/etc/gdb_providers.py
@@ -15,6 +15,9 @@ def unwrap_unique_or_non_null(unique_or_nonnull):
15
# BACKCOMPAT: rust 1.60
16
# https://github.com/rust-lang/rust/commit/2a91eeac1a2d27dd3de1bf55515d765da20fd86f
17
ptr = unique_or_nonnull["pointer"]
18
+ if ptr.type.code == gdb.TYPE_CODE_TYPEDEF:
19
+ ptr = ptr.cast(ptr.type.strip_typedefs())
20
+
21
return ptr if ptr.type.code == gdb.TYPE_CODE_PTR else ptr[ptr.type.fields()[0]]
22
23
0 commit comments