summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-11-30 20:23:19 +0000
committerJim Ingham <jingham@apple.com>2012-11-30 20:23:19 +0000
commitc5917d9a38ce0e4ad0a8f888f759de382dbe8f2d (patch)
tree4adecd07d2319ceb7d1d5028fc69f5244ad287b5 /lldb/source/API/SBDebugger.cpp
parent69ea91b4028711040aeb4bf46efa95214f693e15 (diff)
downloadbcm5719-llvm-c5917d9a38ce0e4ad0a8f888f759de382dbe8f2d.tar.gz
bcm5719-llvm-c5917d9a38ce0e4ad0a8f888f759de382dbe8f2d.zip
Save and restore terminal state when lldb is suspended with SIGTSTP and resumed with SIGCONT.
Readline & gdb have a bunch of code to handle older UNIX'es with other job control mechanisms. I didn't try to replicate that. llvm-svn: 169032
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index af9447a7e18..0c957a677df 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -291,6 +291,20 @@ SBDebugger::GetErrorFileHandle ()
return NULL;
}
+void
+SBDebugger::SaveInputTerminalState()
+{
+ if (m_opaque_sp)
+ m_opaque_sp->SaveInputTerminalState();
+}
+
+void
+SBDebugger::RestoreInputTerminalState()
+{
+ if (m_opaque_sp)
+ m_opaque_sp->RestoreInputTerminalState();
+
+}
SBCommandInterpreter
SBDebugger::GetCommandInterpreter ()
{
OpenPOWER on IntegriCloud