summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/StackFrame.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-04-25 21:54:10 +0000
committerGreg Clayton <gclayton@apple.com>2016-04-25 21:54:10 +0000
commita32532bfa5015a4de6586793fd8ffd667e779a4f (patch)
tree66466361574bf5128449fdbd53b7746d6cb55558 /lldb/source/Target/StackFrame.cpp
parentf2bee298a069a63bc9daabc88e16030888d0e558 (diff)
downloadbcm5719-llvm-a32532bfa5015a4de6586793fd8ffd667e779a4f.tar.gz
bcm5719-llvm-a32532bfa5015a4de6586793fd8ffd667e779a4f.zip
Fix StackFrame::GetVariables(...) function that was broken by 261858 when lambda functions were added to Block::AppendBlockVariables(). The Stackframe::GetVariables(...) function should get all variables regardless if they are in scope.
This wasn't caught by the test suite so I added a test for it. llvm-svn: 267478
Diffstat (limited to 'lldb/source/Target/StackFrame.cpp')
-rw-r--r--lldb/source/Target/StackFrame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp
index 37dc67bed0c..7a566092e03 100644
--- a/lldb/source/Target/StackFrame.cpp
+++ b/lldb/source/Target/StackFrame.cpp
@@ -544,7 +544,7 @@ StackFrame::GetVariableList (bool get_file_globals)
frame_block->AppendBlockVariables(can_create,
get_child_variables,
stop_if_child_block_is_inlined_function,
- [this](Variable* v) { return v->IsInScope(this); },
+ [this](Variable* v) { return true; },
m_variable_list_sp.get());
}
}
OpenPOWER on IntegriCloud