From 03b99097822ca3ac69252d9afae716a584ed56c4 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 25 Feb 2014 21:42:16 +0000 Subject: Import LLDB as of SVN r202189 (git 32871eb) (A number of files not required for the FreeBSD build have been removed.) Sponsored by: DARPA, AFRL --- source/Target/Process.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'source/Target/Process.cpp') diff --git a/source/Target/Process.cpp b/source/Target/Process.cpp index 40d3e4950c6d3..1256ad34c975f 100644 --- a/source/Target/Process.cpp +++ b/source/Target/Process.cpp @@ -4824,13 +4824,21 @@ public: { } + virtual void - Interrupt () + Cancel () { size_t n = 1; char ch = 'q'; m_pipe_write.Write (&ch, n); } + + virtual void + Interrupt () + { + if (StateIsRunningState(m_process->GetState())) + m_process->SendAsyncInterrupt(); + } virtual void GotEOF() @@ -4859,7 +4867,7 @@ Process::CancelWatchForSTDIN (bool exited) { if (exited) m_process_input_reader->SetIsDone(true); - m_process_input_reader->Interrupt(); + m_process_input_reader->Cancel(); } } @@ -4903,7 +4911,7 @@ Process::PopProcessIOHandler () IOHandlerSP io_handler_sp (m_process_input_reader); if (io_handler_sp) { - io_handler_sp->Interrupt(); + io_handler_sp->Cancel(); m_target.GetDebugger().PopIOHandler (io_handler_sp); } } -- cgit v1.2.3