summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-01-27 01:58:22 +0000
committerGreg Clayton <gclayton@apple.com>2015-01-27 01:58:22 +0000
commite507bce2deba996aad34b3adabf296493496d3de (patch)
tree17b83656bc7adebae392c6029f9b10f8d942f82f /lldb/source/Interpreter/CommandInterpreter.cpp
parentd649c0ad56237c66ce1bfdf349fcc4718031f663 (diff)
downloadbcm5719-llvm-e507bce2deba996aad34b3adabf296493496d3de.tar.gz
bcm5719-llvm-e507bce2deba996aad34b3adabf296493496d3de.zip
Allow python command interpreter commands to be interruptable via CTRL+C.
<rdar://problem/17935601> llvm-svn: 227163
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 2729c65525f..6318b80a29e 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -3229,6 +3229,13 @@ CommandInterpreter::IOHandlerInterrupt (IOHandler &io_handler)
return true; // Don't do any updating when we are running
}
}
+
+ ScriptInterpreter *script_interpreter = GetScriptInterpreter (false);
+ if (script_interpreter)
+ {
+ if (script_interpreter->Interrupt())
+ return true;
+ }
return false;
}
OpenPOWER on IntegriCloud