summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-09-11 18:23:22 +0000
committerJim Ingham <jingham@apple.com>2013-09-11 18:23:22 +0000
commitd39907935c4cc2e5c85ccef343a020d9d7ef152b (patch)
treecf4e377fdb4f98bf6dc876d3343b50c37d26df5c /lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
parent48c99007132858c5ccb7e3ce13271fae21731f85 (diff)
downloadbcm5719-llvm-d39907935c4cc2e5c85ccef343a020d9d7ef152b.tar.gz
bcm5719-llvm-d39907935c4cc2e5c85ccef343a020d9d7ef152b.zip
Turns out the number of times you need to resume the process for /bin/sh depends on the
setting of the environment variable COMMAND_MODE. Changed the Platform::GetResumeCountForShell to Platform::GetResumeCountForLaunchInfo, and check both the shell and in the case of /bin/sh the environment as well. llvm-svn: 190538
Diffstat (limited to 'lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp')
-rw-r--r--lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
index 42a458442a6..94dcc60bea3 100644
--- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -415,7 +415,7 @@ PlatformLinux::LaunchProcess (ProcessLaunchInfo &launch_info)
const bool is_localhost = true;
const bool will_debug = launch_info.GetFlags().Test(eLaunchFlagDebug);
const bool first_arg_is_full_shell_command = false;
- uint32_t num_resumes = GetResumeCountForShell (launch_info.GetShell());
+ uint32_t num_resumes = GetResumeCountForLaunchInfo (launch_info);
if (!launch_info.ConvertArgumentsForLaunchingInShell (error,
is_localhost,
will_debug,
OpenPOWER on IntegriCloud