File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
test/API/tools/lldb-vscode/evaluate Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ def run_test_evaluate_expressions(
62
62
self .assertEvaluate (
63
63
"struct1" , "{foo:15}" if enableAutoVariableSummaries else "my_struct @ 0x"
64
64
)
65
+ self .assertEvaluate (
66
+ "struct2" , "{foo:16}" if enableAutoVariableSummaries else "0x.*"
67
+ )
65
68
self .assertEvaluate ("struct1.foo" , "15" )
66
69
self .assertEvaluate ("struct2->foo" , "16" )
67
70
Original file line number Diff line number Diff line change @@ -203,10 +203,9 @@ static bool ShouldBeDereferencedForSummary(lldb::SBValue &v) {
203
203
if (!v.GetType ().IsPointerType () && !v.GetType ().IsReferenceType ())
204
204
return false ;
205
205
206
- // If it's a pointer to a pointer, we don't dereference to avoid confusing
206
+ // If we are referencing a pointer, we don't dereference to avoid confusing
207
207
// the user with the addresses that could shown in the summary.
208
- if (v.GetType ().IsPointerType () &&
209
- v.GetType ().GetDereferencedType ().IsPointerType ())
208
+ if (v.Dereference ().GetType ().IsPointerType ())
210
209
return false ;
211
210
212
211
// If it's synthetic or a pointer to a basic type that provides a summary, we
You can’t perform that action at this time.
0 commit comments