summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-10-20 17:46:43 +0000
committerZachary Turner <zturner@google.com>2014-10-20 17:46:43 +0000
commit10687b0ea5f45dffc800f5d38cb73269aecc9f45 (patch)
tree96ea5e429ec5be2355cb38172ffec327e7b86375 /lldb/source/Target/Target.cpp
parent7550b114b11bc868c36be493eda43fe821c1edea (diff)
downloadbcm5719-llvm-10687b0ea5f45dffc800f5d38cb73269aecc9f45.tar.gz
bcm5719-llvm-10687b0ea5f45dffc800f5d38cb73269aecc9f45.zip
Remove LLDB_DEFAULT_SHELL #define, and determine this at runtime.
Differential Revision: http://reviews.llvm.org/D5805 Reviewed by: Greg Clayton llvm-svn: 220217
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index d30f91d1566..093e6f2d45a 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -35,6 +35,7 @@
#include "lldb/Core/ValueObject.h"
#include "lldb/Expression/ClangASTSource.h"
#include "lldb/Expression/ClangUserExpression.h"
+#include "lldb/Host/FileSpec.h"
#include "lldb/Host/Host.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
@@ -2477,7 +2478,7 @@ Target::Launch (Listener &listener, ProcessLaunchInfo &launch_info)
}
else if (state == eStateExited)
{
- bool with_shell = launch_info.GetShell();
+ bool with_shell = !!launch_info.GetShell();
const int exit_status = m_process_sp->GetExitStatus();
const char *exit_desc = m_process_sp->GetExitDescription();
#define LAUNCH_SHELL_MESSAGE "\n'r' and 'run' are aliases that default to launching through a shell.\nTry launching without going through a shell by using 'process launch'."
OpenPOWER on IntegriCloud