diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 |
commit | ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (patch) | |
tree | 27916256fdeeb57d10d2f3d6948be5d71a703215 /scripts/interface/SBProcess.i | |
parent | 76e0736e7fcfeb179779e49c05604464b1ccd704 (diff) |
Notes
Diffstat (limited to 'scripts/interface/SBProcess.i')
-rw-r--r-- | scripts/interface/SBProcess.i | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/interface/SBProcess.i b/scripts/interface/SBProcess.i index 527442e274ec..55d39f826b7d 100644 --- a/scripts/interface/SBProcess.i +++ b/scripts/interface/SBProcess.i @@ -417,6 +417,18 @@ public: lldb::SBMemoryRegionInfoList GetMemoryRegions(); + %feature("autodoc", " + Get information about the process. + Valid process info will only be returned when the process is alive, + use IsValid() to check if the info returned is valid. + + process_info = process.GetProcessInfo() + if process_info.IsValid(): + process_info.GetProcessID() + ") GetProcessInfo; + lldb::SBProcessInfo + GetProcessInfo(); + %pythoncode %{ def __get_is_alive__(self): '''Returns "True" if the process is currently alive, "False" otherwise''' |