diff options
author | Greg Clayton <gclayton@apple.com> | 2016-04-25 21:54:10 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2016-04-25 21:54:10 +0000 |
commit | a32532bfa5015a4de6586793fd8ffd667e779a4f (patch) | |
tree | 66466361574bf5128449fdbd53b7746d6cb55558 /lldb/source/Target/StackFrame.cpp | |
parent | f2bee298a069a63bc9daabc88e16030888d0e558 (diff) | |
download | bcm5719-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.cpp | 2 |
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()); } } |