[lldb] Debugger: reuse ExecutionContextRef to create ExecutionContext from Target
authorTatyana Krasnukha <tatyana@synopsys.com>
Mon, 1 Feb 2021 19:24:30 +0000 (22:24 +0300)
committerTatyana Krasnukha <tatyana@synopsys.com>
Mon, 8 Feb 2021 12:09:08 +0000 (15:09 +0300)
commita39bcbca92e169baeb8b2c55dff90141ddd53888
tree20a1cd1a5cc22268f29ff47eb9d0a505f31c3e4c
parentf89f6d1e5d7d9cefd9e1d4c7a17afb53245a1fa8
[lldb] Debugger: reuse ExecutionContextRef to create ExecutionContext from Target

The Debugger didn't take the Process's run lock, that causes deadlocks and races
after applying https://reviews.llvm.org/D92164 revision. Since ExecutionContextRef
does the same job correctly, Debugger::GetSelectedExecutionContext just can use it
to build execution context upon the selected target.
lldb/source/Core/Debugger.cpp