diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-24 23:56:06 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-24 23:56:06 +0000 |
commit | 41bd8ac2061b20d63a2068a8f8626fd091d11cd5 (patch) | |
tree | 6134cf49de74fb37adb54937d394afd85059afad /lldb | |
parent | cb3785e450ecf506d55dac3cca1abfee57b2c5d6 (diff) | |
download | bcm5719-llvm-41bd8ac2061b20d63a2068a8f8626fd091d11cd5.tar.gz bcm5719-llvm-41bd8ac2061b20d63a2068a8f8626fd091d11cd5.zip |
Added some missing accessors to the SBAttachInfo for user and group ID
getting, setting, and checking.
llvm-svn: 151408
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/include/lldb/API/SBTarget.h | 18 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBTarget.i | 18 | ||||
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 36 |
3 files changed, 72 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBTarget.h b/lldb/include/lldb/API/SBTarget.h index 3f3efc23978..98a2712c2bf 100644 --- a/lldb/include/lldb/API/SBTarget.h +++ b/lldb/include/lldb/API/SBTarget.h @@ -163,6 +163,24 @@ public: 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 diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i index 0990866fafe..a66131bf77f 100644 --- a/lldb/scripts/Python/interface/SBTarget.i +++ b/lldb/scripts/Python/interface/SBTarget.i @@ -138,6 +138,24 @@ public: 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 diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index fa9c43ef77f..2b6489a80a0 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -348,6 +348,42 @@ SBAttachInfo::SetWaitForLaunch (bool b) } uint32_t +SBAttachInfo::GetUserID() +{ + return m_opaque_sp->GetUserID(); +} + +uint32_t +SBAttachInfo::GetGroupID() +{ + return m_opaque_sp->GetGroupID(); +} + +bool +SBAttachInfo::UserIDIsValid () +{ + return m_opaque_sp->UserIDIsValid(); +} + +bool +SBAttachInfo::GroupIDIsValid () +{ + return m_opaque_sp->GroupIDIsValid(); +} + +void +SBAttachInfo::SetUserID (uint32_t uid) +{ + m_opaque_sp->SetUserID (uid); +} + +void +SBAttachInfo::SetGroupID (uint32_t gid) +{ + m_opaque_sp->SetGroupID (gid); +} + +uint32_t SBAttachInfo::GetEffectiveUserID() { return m_opaque_sp->GetEffectiveUserID(); |