aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-08-30 19:44:40 +0000
committerJim Ingham <jingham@apple.com>2010-08-30 19:44:40 +0000
commite40e42181fcc0c9742d6fcb654b0e1dee07a2513 (patch)
tree978294983a64a9dd49370beea737aadf3932f94b /lldb/source/API/SBDebugger.cpp
parent9026d4b4887e88cbca40cc1de43ad91005b9c769 (diff)
downloadllvm-e40e42181fcc0c9742d6fcb654b0e1dee07a2513.tar.gz
llvm-e40e42181fcc0c9742d6fcb654b0e1dee07a2513.tar.bz2
llvm-e40e42181fcc0c9742d6fcb654b0e1dee07a2513.zip
Added a way to open the current source file & line in an external editor, and you can turn this on with:
lldb -e llvm-svn: 112502
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 73f125bcb8a8..fe2b99a2dc28 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -563,3 +563,23 @@ SBDebugger::FindDebuggerWithID (int id)
sb_debugger.reset (debugger_sp);
return sb_debugger;
}
+
+bool
+SBDebugger::SetUseExternalEditor (bool value)
+{
+ if (m_opaque_sp)
+ return m_opaque_sp->SetUseExternalEditor (value);
+ else
+ return false;
+}
+
+bool
+SBDebugger::UseExternalEditor ()
+{
+ if (m_opaque_sp)
+ return m_opaque_sp->UseExternalEditor ();
+ else
+ return false;
+}
+
+