summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
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/source/API
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/source/API')
-rw-r--r--lldb/source/API/CMakeLists.txt1
-rw-r--r--lldb/source/API/SBLanguageRuntime.cpp26
2 files changed, 27 insertions, 0 deletions
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt
index e26413f759b..121d742da91 100644
--- a/lldb/source/API/CMakeLists.txt
+++ b/lldb/source/API/CMakeLists.txt
@@ -33,6 +33,7 @@ add_lldb_library(liblldb SHARED
SBHostOS.cpp
SBInstruction.cpp
SBInstructionList.cpp
+ SBLanguageRuntime.cpp
SBLaunchInfo.cpp
SBLineEntry.cpp
SBListener.cpp
diff --git a/lldb/source/API/SBLanguageRuntime.cpp b/lldb/source/API/SBLanguageRuntime.cpp
new file mode 100644
index 00000000000..93a54cd76df
--- /dev/null
+++ b/lldb/source/API/SBLanguageRuntime.cpp
@@ -0,0 +1,26 @@
+//===-- SBLanguageRuntime.cpp -----------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/API/SBLanguageRuntime.h"
+#include "lldb/Target/LanguageRuntime.h"
+
+using namespace lldb;
+using namespace lldb_private;
+
+lldb::LanguageType
+SBLanguageRuntime::GetLanguageTypeFromString (const char *string)
+{
+ return LanguageRuntime::GetLanguageTypeFromString(string);
+}
+
+const char *
+SBLanguageRuntime::GetNameForLanguageType (lldb::LanguageType language)
+{
+ return LanguageRuntime::GetNameForLanguageType(language);
+}
OpenPOWER on IntegriCloud