summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-06-02 23:58:26 +0000
committerJim Ingham <jingham@apple.com>2011-06-02 23:58:26 +0000
commit5b52f0c7850ca0ed5bfab234d18ffa9aa86f2e52 (patch)
treed205c0a33ffb0f5af9e1c4d209a86ee388047d5e /lldb/source/Core/Debugger.cpp
parent443332deca51d3112bda4536724573de7bf13972 (diff)
downloadbcm5719-llvm-5b52f0c7850ca0ed5bfab234d18ffa9aa86f2e52.tar.gz
bcm5719-llvm-5b52f0c7850ca0ed5bfab234d18ffa9aa86f2e52.zip
Added Debugger::GetAsync{Output/Error}Stream, and use it to print parse errors when we go to run a breakpoint condition.
llvm-svn: 132517
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index ace2c9a54f9..5610ad764c6 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -13,6 +13,7 @@
#include "lldb/Core/InputReader.h"
#include "lldb/Core/RegisterValue.h"
#include "lldb/Core/State.h"
+#include "lldb/Core/StreamAsynchronousIO.h"
#include "lldb/Core/StreamString.h"
#include "lldb/Core/Timer.h"
#include "lldb/Host/Terminal.h"
@@ -600,6 +601,20 @@ Debugger::ActivateInputReader (const InputReaderSP &reader_sp)
}
}
+StreamSP
+Debugger::GetAsyncOutputStream ()
+{
+ return StreamSP (new StreamAsynchronousIO (GetCommandInterpreter(),
+ CommandInterpreter::eBroadcastBitAsynchronousOutputData));
+}
+
+StreamSP
+Debugger::GetAsyncErrorStream ()
+{
+ return StreamSP (new StreamAsynchronousIO (GetCommandInterpreter(),
+ CommandInterpreter::eBroadcastBitAsynchronousErrorData));
+}
+
DebuggerSP
Debugger::FindDebuggerWithID (lldb::user_id_t id)
{
OpenPOWER on IntegriCloud