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 
9 namespace lldb {
10 %feature("docstring",
11 "Describes how to attach when calling :py:class:`SBTarget.Attach`."
12 ) SBAttachInfo;
13 class SBAttachInfo
14 {
15 public:
16     SBAttachInfo ();
17 
18     SBAttachInfo (lldb::pid_t pid);
19 
20     SBAttachInfo (const char *path, bool wait_for);
21 
22     SBAttachInfo (const char *path, bool wait_for, bool async);
23 
24     SBAttachInfo (const lldb::SBAttachInfo &rhs);
25 
26     lldb::pid_t
27     GetProcessID ();
28 
29     void
30     SetProcessID (lldb::pid_t pid);
31 
32     void
33     SetExecutable (const char *path);
34 
35     void
36     SetExecutable (lldb::SBFileSpec exe_file);
37 
38     bool
39     GetWaitForLaunch ();
40 
41     void
42     SetWaitForLaunch (bool b);
43 
44     void
45     SetWaitForLaunch (bool b, bool async);
46 
47     bool
48     GetIgnoreExisting ();
49 
50     void
51     SetIgnoreExisting (bool b);
52 
53     uint32_t
54     GetResumeCount ();
55 
56     void
57     SetResumeCount (uint32_t c);
58 
59     const char *
60     GetProcessPluginName ();
61 
62     void
63     SetProcessPluginName (const char *plugin_name);
64 
65     uint32_t
66     GetUserID();
67 
68     uint32_t
69     GetGroupID();
70 
71     bool
72     UserIDIsValid ();
73 
74     bool
75     GroupIDIsValid ();
76 
77     void
78     SetUserID (uint32_t uid);
79 
80     void
81     SetGroupID (uint32_t gid);
82 
83     uint32_t
84     GetEffectiveUserID();
85 
86     uint32_t
87     GetEffectiveGroupID();
88 
89     bool
90     EffectiveUserIDIsValid ();
91 
92     bool
93     EffectiveGroupIDIsValid ();
94 
95     void
96     SetEffectiveUserID (uint32_t uid);
97 
98     void
99     SetEffectiveGroupID (uint32_t gid);
100 
101     lldb::pid_t
102     GetParentProcessID ();
103 
104     void
105     SetParentProcessID (lldb::pid_t pid);
106 
107     bool
108     ParentProcessIDIsValid();
109 
110     lldb::SBListener
111     GetListener ();
112 
113     void
114     SetListener (lldb::SBListener &listener);
115 };
116 
117 } // namespace lldb
118