summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/interface
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-04-28 12:51:16 +0000
committerIlia K <ki.stfu@gmail.com>2015-04-28 12:51:16 +0000
commit7f836242229689fe51cf55f5346196439b8fd2ff (patch)
treea8201e12ee20e09dd433d2bb50edebc9d871268f /lldb/scripts/interface
parent6e46512ec3a7f0b6481346e1148100ab0515943a (diff)
downloadbcm5719-llvm-7f836242229689fe51cf55f5346196439b8fd2ff.tar.gz
bcm5719-llvm-7f836242229689fe51cf55f5346196439b8fd2ff.zip
Add language option in -gdb-show command (MI)
Summary: Add language option in -gdb-show command + test: ``` $ bin/lldb-mi ~/p/hello [...] b main [...] r [...] (gdb) -gdb-show language ^done,value="c++" (gdb) quit ``` Test Plan: ./dotest.py -v --executable $BUILDDIR/bin/lldb tools/lldb-mi/ Reviewers: abidh, granata.enrico, jingham, clayborg Reviewed By: clayborg Subscribers: lldb-commits, jingham, granata.enrico, clayborg, abidh Differential Revision: http://reviews.llvm.org/D9279 llvm-svn: 235983
Diffstat (limited to 'lldb/scripts/interface')
-rw-r--r--lldb/scripts/interface/SBLanguageRuntime.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBLanguageRuntime.i b/lldb/scripts/interface/SBLanguageRuntime.i
new file mode 100644
index 00000000000..95153ba0cdc
--- /dev/null
+++ b/lldb/scripts/interface/SBLanguageRuntime.i
@@ -0,0 +1,22 @@
+//===-- SWIG Interface for SBLanguageRuntime --------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+namespace lldb {
+
+class SBLanguageRuntime
+{
+public:
+ static lldb::LanguageType
+ GetLanguageTypeFromString (const char *string);
+
+ static const char *
+ GetNameForLanguageType (lldb::LanguageType language);
+};
+
+} // namespace lldb
OpenPOWER on IntegriCloud