blob: 4c8ef643c90a58fe225c58d32ac3d7b658d78266 [file] [log] [blame]
Oleksiy Vyalov71d08b32015-02-16 00:04:19 +00001//===-- SWIG Interface for SBAttachInfo--------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10namespace lldb {
11
12class SBAttachInfo
13{
14public:
15 SBAttachInfo ();
16
17 SBAttachInfo (lldb::pid_t pid);
18
19 SBAttachInfo (const char *path, bool wait_for);
20
Greg Claytonb3788ea2015-10-05 22:58:37 +000021 SBAttachInfo (const char *path, bool wait_for, bool async);
22
Oleksiy Vyalov71d08b32015-02-16 00:04:19 +000023 SBAttachInfo (const lldb::SBAttachInfo &rhs);
24
25 lldb::pid_t
26 GetProcessID ();
27
28 void
29 SetProcessID (lldb::pid_t pid);
30
31 void
32 SetExecutable (const char *path);
33
34 void
35 SetExecutable (lldb::SBFileSpec exe_file);
36
37 bool
38 GetWaitForLaunch ();
39
40 void
41 SetWaitForLaunch (bool b);
42
Greg Claytonb3788ea2015-10-05 22:58:37 +000043 void
44 SetWaitForLaunch (bool b, bool async);
45
Oleksiy Vyalov71d08b32015-02-16 00:04:19 +000046 bool
47 GetIgnoreExisting ();
48
49 void
50 SetIgnoreExisting (bool b);
51
52 uint32_t
53 GetResumeCount ();
54
55 void
56 SetResumeCount (uint32_t c);
57
58 const char *
59 GetProcessPluginName ();
60
61 void
62 SetProcessPluginName (const char *plugin_name);
63
64 uint32_t
65 GetUserID();
66
67 uint32_t
68 GetGroupID();
69
70 bool
71 UserIDIsValid ();
72
73 bool
74 GroupIDIsValid ();
75
76 void
77 SetUserID (uint32_t uid);
78
79 void
80 SetGroupID (uint32_t gid);
81
82 uint32_t
83 GetEffectiveUserID();
84
85 uint32_t
86 GetEffectiveGroupID();
87
88 bool
89 EffectiveUserIDIsValid ();
90
91 bool
92 EffectiveGroupIDIsValid ();
93
94 void
95 SetEffectiveUserID (uint32_t uid);
96
97 void
98 SetEffectiveGroupID (uint32_t gid);
99
100 lldb::pid_t
101 GetParentProcessID ();
102
103 void
104 SetParentProcessID (lldb::pid_t pid);
105
106 bool
107 ParentProcessIDIsValid();
108
109 lldb::SBListener
110 GetListener ();
111
112 void
113 SetListener (lldb::SBListener &listener);
114};
115
116} // namespace lldb