2015-02-05 07:19:15 +08:00
|
|
|
//===-- SWIG Interface for SBLaunchInfo--------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-02-05 07:19:15 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
namespace lldb {
|
|
|
|
|
2021-01-16 02:49:51 +08:00
|
|
|
%feature("docstring",
|
|
|
|
"Describes how a target or program should be launched."
|
|
|
|
) SBLaunchInfo;
|
2015-02-05 07:19:15 +08:00
|
|
|
class SBLaunchInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SBLaunchInfo (const char **argv);
|
|
|
|
|
|
|
|
pid_t
|
|
|
|
GetProcessID();
|
|
|
|
|
|
|
|
uint32_t
|
|
|
|
GetUserID();
|
|
|
|
|
|
|
|
uint32_t
|
|
|
|
GetGroupID();
|
|
|
|
|
|
|
|
bool
|
|
|
|
UserIDIsValid ();
|
|
|
|
|
|
|
|
bool
|
|
|
|
GroupIDIsValid ();
|
|
|
|
|
|
|
|
void
|
|
|
|
SetUserID (uint32_t uid);
|
|
|
|
|
|
|
|
void
|
|
|
|
SetGroupID (uint32_t gid);
|
|
|
|
|
|
|
|
lldb::SBFileSpec
|
|
|
|
GetExecutableFile ();
|
|
|
|
|
|
|
|
void
|
|
|
|
SetExecutableFile (lldb::SBFileSpec exe_file, bool add_as_first_arg);
|
|
|
|
|
|
|
|
lldb::SBListener
|
|
|
|
GetListener ();
|
|
|
|
|
|
|
|
void
|
|
|
|
SetListener (lldb::SBListener &listener);
|
|
|
|
|
|
|
|
uint32_t
|
|
|
|
GetNumArguments ();
|
|
|
|
|
|
|
|
const char *
|
|
|
|
GetArgumentAtIndex (uint32_t idx);
|
|
|
|
|
|
|
|
void
|
|
|
|
SetArguments (const char **argv, bool append);
|
|
|
|
|
|
|
|
uint32_t
|
|
|
|
GetNumEnvironmentEntries ();
|
|
|
|
|
|
|
|
const char *
|
|
|
|
GetEnvironmentEntryAtIndex (uint32_t idx);
|
|
|
|
|
|
|
|
void
|
|
|
|
SetEnvironmentEntries (const char **envp, bool append);
|
|
|
|
|
2020-03-21 10:31:33 +08:00
|
|
|
void
|
|
|
|
SetEnvironment(const SBEnvironment &env, bool append);
|
|
|
|
|
|
|
|
SBEnvironment
|
|
|
|
GetEnvironment();
|
|
|
|
|
2015-02-05 07:19:15 +08:00
|
|
|
void
|
|
|
|
Clear ();
|
|
|
|
|
|
|
|
const char *
|
|
|
|
GetWorkingDirectory () const;
|
|
|
|
|
|
|
|
void
|
|
|
|
SetWorkingDirectory (const char *working_dir);
|
|
|
|
|
|
|
|
uint32_t
|
|
|
|
GetLaunchFlags ();
|
|
|
|
|
|
|
|
void
|
|
|
|
SetLaunchFlags (uint32_t flags);
|
|
|
|
|
|
|
|
const char *
|
|
|
|
GetProcessPluginName ();
|
|
|
|
|
|
|
|
void
|
|
|
|
SetProcessPluginName (const char *plugin_name);
|
|
|
|
|
|
|
|
const char *
|
|
|
|
GetShell ();
|
|
|
|
|
|
|
|
void
|
|
|
|
SetShell (const char * path);
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2015-02-10 11:16:55 +08:00
|
|
|
bool
|
2015-02-21 06:20:30 +08:00
|
|
|
GetShellExpandArguments ();
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2015-02-10 11:16:55 +08:00
|
|
|
void
|
2015-02-21 06:20:30 +08:00
|
|
|
SetShellExpandArguments (bool expand);
|
2015-02-05 07:19:15 +08:00
|
|
|
|
|
|
|
uint32_t
|
|
|
|
GetResumeCount ();
|
|
|
|
|
|
|
|
void
|
|
|
|
SetResumeCount (uint32_t c);
|
|
|
|
|
|
|
|
bool
|
|
|
|
AddCloseFileAction (int fd);
|
|
|
|
|
|
|
|
bool
|
|
|
|
AddDuplicateFileAction (int fd, int dup_fd);
|
|
|
|
|
|
|
|
bool
|
|
|
|
AddOpenFileAction (int fd, const char *path, bool read, bool write);
|
|
|
|
|
|
|
|
bool
|
|
|
|
AddSuppressFileAction (int fd, bool read, bool write);
|
|
|
|
|
|
|
|
void
|
|
|
|
SetLaunchEventData (const char *data);
|
|
|
|
|
|
|
|
const char *
|
|
|
|
GetLaunchEventData () const;
|
|
|
|
|
|
|
|
bool
|
|
|
|
GetDetachOnError() const;
|
|
|
|
|
|
|
|
void
|
|
|
|
SetDetachOnError(bool enable);
|
2021-03-24 00:22:07 +08:00
|
|
|
|
|
|
|
const char *
|
|
|
|
GetScriptedProcessClassName() const;
|
|
|
|
|
|
|
|
void SetScriptedProcessClassName(const char *class_name);
|
|
|
|
|
|
|
|
lldb::SBStructuredData
|
|
|
|
GetScriptedProcessDictionary() const;
|
|
|
|
|
|
|
|
void SetScriptedProcessDictionary(lldb::SBStructuredData dict);
|
2015-02-05 07:19:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lldb
|