1 //===-- SBAttachInfo.h ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBAttachInfo_h_
11 #define LLDB_SBAttachInfo_h_
13 #include "lldb/API/SBDefines.h"
19 class LLDB_API SBAttachInfo
24 SBAttachInfo (lldb::pid_t pid);
26 SBAttachInfo (const char *path, bool wait_for);
28 SBAttachInfo (const SBAttachInfo &rhs);
33 operator = (const SBAttachInfo &rhs);
39 SetProcessID (lldb::pid_t pid);
42 SetExecutable (const char *path);
45 SetExecutable (lldb::SBFileSpec exe_file);
51 SetWaitForLaunch (bool b);
57 SetIgnoreExisting (bool b);
63 SetResumeCount (uint32_t c);
66 GetProcessPluginName ();
69 SetProcessPluginName (const char *plugin_name);
84 SetUserID (uint32_t uid);
87 SetGroupID (uint32_t gid);
93 GetEffectiveGroupID();
96 EffectiveUserIDIsValid ();
99 EffectiveGroupIDIsValid ();
102 SetEffectiveUserID (uint32_t uid);
105 SetEffectiveGroupID (uint32_t gid);
108 GetParentProcessID ();
111 SetParentProcessID (lldb::pid_t pid);
114 ParentProcessIDIsValid();
116 //----------------------------------------------------------------------
117 /// Get the listener that will be used to receive process events.
119 /// If no listener has been set via a call to
120 /// SBLaunchInfo::SetListener(), then an invalid SBListener will be
121 /// returned (SBListener::IsValid() will return false). If a listener
122 /// has been set, then the valid listener object will be returned.
123 //----------------------------------------------------------------------
127 //----------------------------------------------------------------------
128 /// Set the listener that will be used to receive process events.
130 /// By default the SBDebugger, which has a listener, that the SBTarget
131 /// belongs to will listen for the process events. Calling this function
132 /// allows a different listener to be used to listen for process events.
133 //----------------------------------------------------------------------
135 SetListener (SBListener &listener);
139 friend class SBTarget;
141 lldb_private::ProcessAttachInfo &
144 ProcessAttachInfoSP m_opaque_sp;
149 #endif // LLDB_SBAttachInfo_h_