summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-03-12 02:45:34 +0000
committerJim Ingham <jingham@apple.com>2016-03-12 02:45:34 +0000
commit8d94ba0fb18e0b40631737b88f8c9a9abf025d80 (patch)
tree989b16e9e7df44b37f4e6536efde4ea07fd51ff4 /lldb/packages/Python/lldbsuite/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
parentcf9732b4177bba5a073619f8f067cf4a0193b325 (diff)
downloadbcm5719-llvm-8d94ba0fb18e0b40631737b88f8c9a9abf025d80.tar.gz
bcm5719-llvm-8d94ba0fb18e0b40631737b88f8c9a9abf025d80.zip
This change introduces a "ExpressionExecutionThread" to the ThreadList.
Turns out that most of the code that runs expressions (e.g. the ObjC runtime grubber) on behalf of the expression parser was using the currently selected thread. But sometimes, e.g. when we are evaluating breakpoint conditions/commands, we don't select the thread we're running on, we instead set the context for the interpreter, and explicitly pass that to other callers. That wasn't getting communicated to these utility expressions, so they would run on some other thread instead, and that could cause a variety of subtle and hard to reproduce problems. I also went through the commands and cleaned up the use of GetSelectedThread. All those uses should have been trying the thread in the m_exe_ctx belonging to the command object first. It would actually have been pretty hard to get misbehavior in these cases, but for correctness sake it is good to make this usage consistent. <rdar://problem/24978569> llvm-svn: 263326
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud