summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-10-21 18:58:01 +0000
committerSiva Chandra <sivachandra@google.com>2015-10-21 18:58:01 +0000
commit654aaf12dc319ea4b6fc82123d903e6d0c49984b (patch)
tree4f763eb69e66b55243a3f41d7e4b36c23d89860b /lldb/source/Core/Debugger.cpp
parentefab8b0d08b7997a8c9b49a6201e257a9b136e2f (diff)
downloadbcm5719-llvm-654aaf12dc319ea4b6fc82123d903e6d0c49984b.tar.gz
bcm5719-llvm-654aaf12dc319ea4b6fc82123d903e6d0c49984b.zip
Revert "Made the REPL choose a default language if only one REPL can be chosen."
Summary: This reverts commit babd6dd74e316b1fcd9d171d7d8c83845d51a487. Reviewers: spyffe Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13952 llvm-svn: 250927
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 494b762e872..8619b50b2a3 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1805,6 +1805,11 @@ Debugger::RunREPL (LanguageType language, const char *repl_options)
{
Error err;
FileSpec repl_executable;
+ if (language == eLanguageTypeUnknown)
+ {
+ err.SetErrorString ("must specify a language for a REPL"); // TODO make it possible to specify a default language
+ return err;
+ }
Target *const target = nullptr; // passing in an empty target means the REPL must create one
OpenPOWER on IntegriCloud