summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-10-21 01:00:42 +0000
committerGreg Clayton <gclayton@apple.com>2014-10-21 01:00:42 +0000
commitdc6224e0a3ce2b097f0a631de9ae1960f175dfe6 (patch)
tree7364aee6be1c2bddee56bcabeab0ca59de7fb2c5 /lldb/source/Interpreter/CommandInterpreter.cpp
parentf16a66973c04f56eb5068fe407ad75a3e09ee00a (diff)
downloadbcm5719-llvm-dc6224e0a3ce2b097f0a631de9ae1960f175dfe6.tar.gz
bcm5719-llvm-dc6224e0a3ce2b097f0a631de9ae1960f175dfe6.zip
Make the "synchronous" mode actually work without race conditions.
There were many issues with synchronous mode that we discovered when started to try and add a "batch" mode. There was a race condition where the event handling thread might consume events when in sync mode and other times the Process::WaitForProcessToStop() would consume them. This also led to places where the Process IO handler might or might not get popped when it needed to be. llvm-svn: 220254
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 9097ab007e6..8e1d080ec67 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -3141,20 +3141,6 @@ CommandInterpreter::IOHandlerInputComplete (IOHandler &io_handler, std::string &
StopReason reason = thread_sp->GetStopReason();
if (reason == eStopReasonSignal || reason == eStopReasonException || reason == eStopReasonInstrumentation)
{
- // If we are printing results, we ought to show the resaon why we are stopping here:
- if (io_handler.GetFlags().Test(eHandleCommandFlagPrintResult))
- {
- if (!result.GetImmediateOutputStream())
- {
- const uint32_t start_frame = 0;
- const uint32_t num_frames = 1;
- const uint32_t num_frames_with_source = 1;
- thread_sp->GetStatus (*io_handler.GetOutputStreamFile().get(),
- start_frame,
- num_frames,
- num_frames_with_source);
- }
- }
should_stop = true;
break;
}
OpenPOWER on IntegriCloud