本文整理汇总了C++中ProcessLaunchInfo::ConvertArgumentsForLaunchingInShell方法的典型用法代码示例。如果您正苦于以下问题:C++ ProcessLaunchInfo::ConvertArgumentsForLaunchingInShell方法的具体用法?C++ ProcessLaunchInfo::ConvertArgumentsForLaunchingInShell怎么用?C++ ProcessLaunchInfo::ConvertArgumentsForLaunchingInShell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProcessLaunchInfo
的用法示例。
在下文中一共展示了ProcessLaunchInfo::ConvertArgumentsForLaunchingInShell方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
Error
PlatformLinux::LaunchProcess (ProcessLaunchInfo &launch_info)
{
Error error;
if (IsHost())
{
if (launch_info.GetFlags().Test (eLaunchFlagLaunchInShell))
{
const bool is_localhost = true;
const bool will_debug = launch_info.GetFlags().Test(eLaunchFlagDebug);
const bool first_arg_is_full_shell_command = false;
if (!launch_info.ConvertArgumentsForLaunchingInShell (error,
is_localhost,
will_debug,
first_arg_is_full_shell_command))
return error;
}
error = Platform::LaunchProcess (launch_info);
}
else
{
error.SetErrorString ("the platform is not currently connected");
}
return error;
}
示例2: GetResumeCountForLaunchInfo
Error
Platform::LaunchProcess (ProcessLaunchInfo &launch_info)
{
Error error;
// Take care of the host case so that each subclass can just
// call this function to get the host functionality.
if (IsHost())
{
if (::getenv ("LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY"))
launch_info.GetFlags().Set (eLaunchFlagLaunchInTTY);
if (launch_info.GetFlags().Test (eLaunchFlagLaunchInShell))
{
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 = GetResumeCountForLaunchInfo (launch_info);
if (!launch_info.ConvertArgumentsForLaunchingInShell (error,
is_localhost,
will_debug,
first_arg_is_full_shell_command,
num_resumes))
return error;
}
error = Host::LaunchProcess (launch_info);
}
else
error.SetErrorString ("base lldb_private::Platform class can't launch remote processes");
return error;
}