diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-09-14 00:53:53 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-09-14 00:53:53 +0000 |
| commit | c13ee52c2fff68aef82a64fc3386a69ced0013ee (patch) | |
| tree | 8374b6aa36d75a3a3fb730d0c8f7034ce142982f /lldb/source/Core/Debugger.cpp | |
| parent | e1e70b93ca4c61e78515567d22514606c1632eea (diff) | |
| download | bcm5719-llvm-c13ee52c2fff68aef82a64fc3386a69ced0013ee.tar.gz bcm5719-llvm-c13ee52c2fff68aef82a64fc3386a69ced0013ee.zip | |
Fixed an error in Debugger::UpdateExecutionContext() where an invalid index ID 0
was used to set the selected thread if none was selected. Use a more robust
API to accomplish the task.
Also fixed an error found, while investigating, in CommandObjectThreadSelect::
Execute() where the return status was not properly set if successful.
As a result, both the stl step-in test cases with expectedFailure decorators now
passed.
llvm-svn: 113825
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
| -rw-r--r-- | lldb/source/Core/Debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 2c20a7b8553..408220437b6 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -507,7 +507,7 @@ Debugger::UpdateExecutionContext (ExecutionContext *override_context) m_exe_ctx.thread = m_exe_ctx.process->GetThreadList().GetThreadAtIndex(0).get(); // If we didn't have a selected thread, select one here. if (m_exe_ctx.thread != NULL) - m_exe_ctx.process->GetThreadList().SetSelectedThreadByIndexID(0); + m_exe_ctx.process->GetThreadList().SetSelectedThreadByID(m_exe_ctx.thread->GetID()); } if (m_exe_ctx.thread) { |

