1//===-- SWIG Interface for SBAttachInfo--------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9namespace lldb {
10
11class SBAttachInfo
12{
13public:
14    SBAttachInfo ();
15
16    SBAttachInfo (lldb::pid_t pid);
17
18    SBAttachInfo (const char *path, bool wait_for);
19
20    SBAttachInfo (const char *path, bool wait_for, bool async);
21
22    SBAttachInfo (const lldb::SBAttachInfo &rhs);
23
24    lldb::pid_t
25    GetProcessID ();
26
27    void
28    SetProcessID (lldb::pid_t pid);
29
30    void
31    SetExecutable (const char *path);
32
33    void
34    SetExecutable (lldb::SBFileSpec exe_file);
35
36    bool
37    GetWaitForLaunch ();
38
39    void
40    SetWaitForLaunch (bool b);
41
42    void
43    SetWaitForLaunch (bool b, bool async);
44
45    bool
46    GetIgnoreExisting ();
47
48    void
49    SetIgnoreExisting (bool b);
50
51    uint32_t
52    GetResumeCount ();
53
54    void
55    SetResumeCount (uint32_t c);
56
57    const char *
58    GetProcessPluginName ();
59
60    void
61    SetProcessPluginName (const char *plugin_name);
62
63    uint32_t
64    GetUserID();
65
66    uint32_t
67    GetGroupID();
68
69    bool
70    UserIDIsValid ();
71
72    bool
73    GroupIDIsValid ();
74
75    void
76    SetUserID (uint32_t uid);
77
78    void
79    SetGroupID (uint32_t gid);
80
81    uint32_t
82    GetEffectiveUserID();
83
84    uint32_t
85    GetEffectiveGroupID();
86
87    bool
88    EffectiveUserIDIsValid ();
89
90    bool
91    EffectiveGroupIDIsValid ();
92
93    void
94    SetEffectiveUserID (uint32_t uid);
95
96    void
97    SetEffectiveGroupID (uint32_t gid);
98
99    lldb::pid_t
100    GetParentProcessID ();
101
102    void
103    SetParentProcessID (lldb::pid_t pid);
104
105    bool
106    ParentProcessIDIsValid();
107
108    lldb::SBListener
109    GetListener ();
110
111    void
112    SetListener (lldb::SBListener &listener);
113};
114
115} // namespace lldb
116