mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 05:25:50 -04:00

Summary: Implement SBProcessInfo to wrap lldb_private::ProcessInstanceInfo, and add SBProcess::GetProcessInfo() to retrieve info like parent ID, group ID, user ID etc. from a live process. Differential Revision: https://reviews.llvm.org/D35881 llvm-svn: 309664
67 lines
1.1 KiB
C++
67 lines
1.1 KiB
C++
//===-- SWIG Interface for SBProcessInfo-------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
namespace lldb {
|
|
|
|
%feature("docstring",
|
|
"Describes an existing process and any discoverable information that pertains to
|
|
that process."
|
|
) SBProcessInfo;
|
|
|
|
class SBProcessInfo
|
|
{
|
|
public:
|
|
SBProcessInfo();
|
|
|
|
SBProcessInfo (const SBProcessInfo &rhs);
|
|
|
|
~SBProcessInfo ();
|
|
|
|
bool
|
|
IsValid ();
|
|
|
|
const char *
|
|
GetName ();
|
|
|
|
SBFileSpec
|
|
GetExecutableFile ();
|
|
|
|
lldb::pid_t
|
|
GetProcessID ();
|
|
|
|
uint32_t
|
|
GetUserID ();
|
|
|
|
uint32_t
|
|
GetGroupID ();
|
|
|
|
bool
|
|
UserIDIsValid ();
|
|
|
|
bool
|
|
GroupIDIsValid ();
|
|
|
|
uint32_t
|
|
GetEffectiveUserID ();
|
|
|
|
uint32_t
|
|
GetEffectiveGroupID ();
|
|
|
|
bool
|
|
EffectiveUserIDIsValid ();
|
|
|
|
bool
|
|
EffectiveGroupIDIsValid ();
|
|
|
|
lldb::pid_t
|
|
GetParentProcessID ();
|
|
};
|
|
|
|
} // namespace lldb
|