|
LLDB mainline
|
#include <SBAttachInfo.h>
Public Member Functions | |
| SBAttachInfo () | |
| SBAttachInfo (lldb::pid_t pid) | |
| SBAttachInfo (const char *path, bool wait_for) | |
| Attach to a process by name. | |
| SBAttachInfo (const char *path, bool wait_for, bool async) | |
| Attach to a process by name. | |
| SBAttachInfo (const SBAttachInfo &rhs) | |
| ~SBAttachInfo () | |
| SBAttachInfo & | operator= (const SBAttachInfo &rhs) |
| lldb::pid_t | GetProcessID () |
| void | SetProcessID (lldb::pid_t pid) |
| void | SetExecutable (const char *path) |
| void | SetExecutable (lldb::SBFileSpec exe_file) |
| bool | GetWaitForLaunch () |
| void | SetWaitForLaunch (bool b) |
| Set attach by process name settings. | |
| void | SetWaitForLaunch (bool b, bool async) |
| Set attach by process name settings. | |
| bool | GetIgnoreExisting () |
| void | SetIgnoreExisting (bool b) |
| uint32_t | GetResumeCount () |
| void | SetResumeCount (uint32_t c) |
| const char * | GetProcessPluginName () |
| void | SetProcessPluginName (const char *plugin_name) |
| uint32_t | GetUserID () |
| uint32_t | GetGroupID () |
| bool | UserIDIsValid () |
| bool | GroupIDIsValid () |
| void | SetUserID (uint32_t uid) |
| void | SetGroupID (uint32_t gid) |
| uint32_t | GetEffectiveUserID () |
| uint32_t | GetEffectiveGroupID () |
| bool | EffectiveUserIDIsValid () |
| bool | EffectiveGroupIDIsValid () |
| void | SetEffectiveUserID (uint32_t uid) |
| void | SetEffectiveGroupID (uint32_t gid) |
| lldb::pid_t | GetParentProcessID () |
| void | SetParentProcessID (lldb::pid_t pid) |
| bool | ParentProcessIDIsValid () |
| SBListener | GetListener () |
| Get the listener that will be used to receive process events. | |
| void | SetListener (SBListener &listener) |
| Set the listener that will be used to receive process events. | |
| SBListener | GetShadowListener () |
| Get the shadow listener that receive public process events, additionally to the default process event listener. | |
| void | SetShadowListener (SBListener &listener) |
| Set the shadow listener that will receive public process events, additionally to the default process event listener. | |
| const char * | GetScriptedProcessClassName () const |
| void | SetScriptedProcessClassName (const char *class_name) |
| lldb::SBStructuredData | GetScriptedProcessDictionary () const |
| void | SetScriptedProcessDictionary (lldb::SBStructuredData dict) |
Protected Member Functions | |
| lldb_private::ProcessAttachInfo & | ref () |
Protected Attributes | |
| ProcessAttachInfoSP | m_opaque_sp |
Friends | |
| class | SBTarget |
| class | SBPlatform |
| class | lldb_private::ScriptInterpreterBridge |
Definition at line 22 of file SBAttachInfo.h.
| SBAttachInfo::SBAttachInfo | ( | ) |
Definition at line 22 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by operator=(), SBAttachInfo(), and ~SBAttachInfo().
| SBAttachInfo::SBAttachInfo | ( | lldb::pid_t | pid | ) |
Definition at line 26 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
| SBAttachInfo::SBAttachInfo | ( | const char * | path, |
| bool | wait_for ) |
Attach to a process by name.
This function implies that a future call to SBTarget::Attach(...) will be synchronous.
| [in] | path | A full or partial name for the process to attach to. |
| [in] | wait_for | If false, attach to an existing process whose name matches. If true, then wait for the next process whose name matches. |
Definition at line 33 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Attach to a process by name.
Future calls to SBTarget::Attach(...) will be synchronous or asynchronous depending on the async argument.
| [in] | path | A full or partial name for the process to attach to. |
| [in] | wait_for | If false, attach to an existing process whose name matches. If true, then wait for the next process whose name matches. |
| [in] | async | If false, then the SBTarget::Attach(...) call will be a synchronous call with no way to cancel the attach in progress. If true, then the SBTarget::Attach(...) function will return immediately and clients are expected to wait for a process eStateStopped event if a suitable process is eventually found. If the client wants to cancel the event, SBProcess::Stop() can be called and an eStateExited process event will be delivered. |
Definition at line 42 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
| SBAttachInfo::SBAttachInfo | ( | const SBAttachInfo & | rhs | ) |
Definition at line 52 of file SBAttachInfo.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBAttachInfo().
|
default |
References EffectiveGroupIDIsValid(), EffectiveUserIDIsValid(), GetEffectiveGroupID(), GetEffectiveUserID(), GetGroupID(), GetIgnoreExisting(), GetListener(), GetParentProcessID(), GetProcessID(), GetProcessPluginName(), GetResumeCount(), GetScriptedProcessClassName(), GetScriptedProcessDictionary(), GetShadowListener(), GetUserID(), GetWaitForLaunch(), GroupIDIsValid(), operator=(), ParentProcessIDIsValid(), SBAttachInfo(), SetEffectiveGroupID(), SetEffectiveUserID(), SetExecutable(), SetGroupID(), SetIgnoreExisting(), SetListener(), SetParentProcessID(), SetProcessID(), SetProcessPluginName(), SetResumeCount(), SetScriptedProcessClassName(), SetScriptedProcessDictionary(), SetShadowListener(), SetUserID(), SetWaitForLaunch(), and UserIDIsValid().
| bool SBAttachInfo::EffectiveGroupIDIsValid | ( | ) |
Definition at line 211 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| bool SBAttachInfo::EffectiveUserIDIsValid | ( | ) |
Definition at line 205 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| uint32_t SBAttachInfo::GetEffectiveGroupID | ( | ) |
Definition at line 199 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| uint32_t SBAttachInfo::GetEffectiveUserID | ( | ) |
Definition at line 193 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| uint32_t SBAttachInfo::GetGroupID | ( | ) |
Definition at line 163 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| bool SBAttachInfo::GetIgnoreExisting | ( | ) |
Definition at line 145 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| SBListener SBAttachInfo::GetListener | ( | ) |
Get the listener that will be used to receive process events.
If no listener has been set via a call to SBAttachInfo::SetListener(), then an invalid SBListener will be returned (SBListener::IsValid() will return false). If a listener has been set, then the valid listener object will be returned.
Definition at line 247 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBListener.
Referenced by ~SBAttachInfo().
| lldb::pid_t SBAttachInfo::GetParentProcessID | ( | ) |
Definition at line 229 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| lldb::pid_t SBAttachInfo::GetProcessID | ( | ) |
Definition at line 71 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| const char * SBAttachInfo::GetProcessPluginName | ( | ) |
Definition at line 95 of file SBAttachInfo.cpp.
References lldb_private::StringPool::GetSystemPool(), lldb_private::StringPoolRef::Intern(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| uint32_t SBAttachInfo::GetResumeCount | ( | ) |
Definition at line 83 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| const char * SBAttachInfo::GetScriptedProcessClassName | ( | ) | const |
Definition at line 274 of file SBAttachInfo.cpp.
References lldb_private::ConstString::AsCString(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| lldb::SBStructuredData SBAttachInfo::GetScriptedProcessDictionary | ( | ) | const |
Definition at line 302 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, lldb::SBStructuredData::m_impl_up, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| SBListener SBAttachInfo::GetShadowListener | ( | ) |
Get the shadow listener that receive public process events, additionally to the default process event listener.
If no listener has been set via a call to SBLaunchInfo::SetShadowListener(), then an invalid SBListener will be returned (SBListener::IsValid() will return false). If a listener has been set, then the valid listener object will be returned.
Definition at line 259 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBListener.
Referenced by ~SBAttachInfo().
| uint32_t SBAttachInfo::GetUserID | ( | ) |
Definition at line 157 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| bool SBAttachInfo::GetWaitForLaunch | ( | ) |
Definition at line 126 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| bool SBAttachInfo::GroupIDIsValid | ( | ) |
Definition at line 175 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| SBAttachInfo & SBAttachInfo::operator= | ( | const SBAttachInfo & | rhs | ) |
Definition at line 63 of file SBAttachInfo.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBAttachInfo().
Referenced by ~SBAttachInfo().
| bool SBAttachInfo::ParentProcessIDIsValid | ( | ) |
Definition at line 241 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
|
protected |
Definition at line 61 of file SBAttachInfo.cpp.
References m_opaque_sp.
Referenced by lldb::SBPlatform::Attach(), lldb::SBTarget::Attach(), and lldb_private::ScriptInterpreterBridge.
| void SBAttachInfo::SetEffectiveGroupID | ( | uint32_t | gid | ) |
Definition at line 223 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetEffectiveUserID | ( | uint32_t | uid | ) |
Definition at line 217 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetExecutable | ( | const char * | path | ) |
Definition at line 108 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetExecutable | ( | lldb::SBFileSpec | exe_file | ) |
Definition at line 117 of file SBAttachInfo.cpp.
References lldb::SBFileSpec::IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBFileSpec::ref().
| void SBAttachInfo::SetGroupID | ( | uint32_t | gid | ) |
Definition at line 187 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetIgnoreExisting | ( | bool | b | ) |
Definition at line 151 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetListener | ( | SBListener & | listener | ) |
Set the listener that will be used to receive process events.
By default the SBDebugger, which has a listener, that the SBTarget belongs to will listen for the process events. Calling this function allows a different listener to be used to listen for process events.
Definition at line 253 of file SBAttachInfo.cpp.
References lldb::SBListener::GetSP(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetParentProcessID | ( | lldb::pid_t | pid | ) |
Definition at line 235 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetProcessID | ( | lldb::pid_t | pid | ) |
Definition at line 77 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetProcessPluginName | ( | const char * | plugin_name | ) |
Definition at line 102 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetResumeCount | ( | uint32_t | c | ) |
Definition at line 89 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetScriptedProcessClassName | ( | const char * | class_name | ) |
Definition at line 288 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetScriptedProcessDictionary | ( | lldb::SBStructuredData | dict | ) |
Definition at line 317 of file SBAttachInfo.cpp.
References lldb::eStructuredDataTypeInvalid, lldb::SBStructuredData::IsValid(), LLDB_INSTRUMENT_VA, lldb::SBStructuredData::m_impl_up, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetShadowListener | ( | SBListener & | listener | ) |
Set the shadow listener that will receive public process events, additionally to the default process event listener.
By default a process have no shadow event listener. Calling this function allows public process events to be broadcasted to an additional listener on top of the default process event listener. If the listener argument is invalid (SBListener::IsValid() will return false), this will clear the shadow listener.
Definition at line 268 of file SBAttachInfo.cpp.
References lldb::SBListener::GetSP(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetUserID | ( | uint32_t | uid | ) |
Definition at line 181 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
| void SBAttachInfo::SetWaitForLaunch | ( | bool | b | ) |
Set attach by process name settings.
Designed to be used after a call to SBAttachInfo::SetExecutable(). This function implies that a call to SBTarget::Attach(...) will be synchronous.
| [in] | b | If false, attach to an existing process whose name matches. If true, then wait for the next process whose name matches. |
Definition at line 132 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
Set attach by process name settings.
Designed to be used after a call to SBAttachInfo::SetExecutable(). Future calls to SBTarget::Attach(...) will be synchronous or asynchronous depending on the async argument.
| [in] | b | If false, attach to an existing process whose name matches. If true, then wait for the next process whose name matches. |
| [in] | async | If false, then the SBTarget::Attach(...) call will be a synchronous call with no way to cancel the attach in progress. If true, then the SBTarget::Attach(...) function will return immediately and clients are expected to wait for a process eStateStopped event if a suitable process is eventually found. If the client wants to cancel the event, SBProcess::Stop() can be called and an eStateExited process event will be delivered. |
Definition at line 138 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
| bool SBAttachInfo::UserIDIsValid | ( | ) |
Definition at line 169 of file SBAttachInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBAttachInfo().
|
friend |
Definition at line 202 of file SBAttachInfo.h.
References ref().
|
friend |
|
friend |
|
protected |
Definition at line 206 of file SBAttachInfo.h.
Referenced by EffectiveGroupIDIsValid(), EffectiveUserIDIsValid(), GetEffectiveGroupID(), GetEffectiveUserID(), GetGroupID(), GetIgnoreExisting(), GetListener(), GetParentProcessID(), lldb_private::ScriptInterpreterBridge::GetProcessAttachInfo(), GetProcessID(), GetProcessPluginName(), GetResumeCount(), GetScriptedProcessClassName(), GetScriptedProcessDictionary(), GetShadowListener(), GetUserID(), GetWaitForLaunch(), GroupIDIsValid(), operator=(), ParentProcessIDIsValid(), ref(), SBAttachInfo(), SBAttachInfo(), SBAttachInfo(), SBAttachInfo(), SBAttachInfo(), SetEffectiveGroupID(), SetEffectiveUserID(), SetExecutable(), SetExecutable(), SetGroupID(), SetIgnoreExisting(), SetListener(), SetParentProcessID(), SetProcessID(), SetProcessPluginName(), SetResumeCount(), SetScriptedProcessClassName(), SetScriptedProcessDictionary(), SetShadowListener(), SetUserID(), SetWaitForLaunch(), SetWaitForLaunch(), and UserIDIsValid().