diff options
author | Greg Clayton <gclayton@apple.com> | 2012-01-29 06:07:39 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-01-29 06:07:39 +0000 |
commit | 13d1950ae6eaf579cbecab1c0515d58f5fa2b648 (patch) | |
tree | 082fa177e8ac54f51cf9cec03db79f892dd39985 /lldb/scripts/Python/interface/SBThread.i | |
parent | 6e1c0123855f6eacda37bd2c1bd9b29c8c99c1cb (diff) | |
download | bcm5719-llvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.tar.gz bcm5719-llvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.zip |
Added the ability to get the target triple, byte order and address byte size
from the SBTarget and SBModule interfaces. Also added many python properties
for easier access to many things from many SB objects.
llvm-svn: 149191
Diffstat (limited to 'lldb/scripts/Python/interface/SBThread.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBThread.i | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i index 762626df9ae..c77706a6f4a 100644 --- a/lldb/scripts/Python/interface/SBThread.i +++ b/lldb/scripts/Python/interface/SBThread.i @@ -173,6 +173,36 @@ public: bool GetDescription (lldb::SBStream &description) const; + + %pythoncode %{ + __swig_getmethods__["id"] = GetThreadID + if _newclass: x = property(GetThreadID, None) + + __swig_getmethods__["idx"] = GetIndexID + if _newclass: x = property(GetIndexID, None) + + __swig_getmethods__["return_value"] = GetStopReturnValue + if _newclass: x = property(GetStopReturnValue, None) + + __swig_getmethods__["process"] = GetProcess + if _newclass: x = property(GetProcess, None) + + __swig_getmethods__["num_frames"] = GetNumFrames + if _newclass: x = property(GetNumFrames, None) + + __swig_getmethods__["name"] = GetName + if _newclass: x = property(GetName, None) + + __swig_getmethods__["queue"] = GetQueueName + if _newclass: x = property(GetQueueName, None) + + __swig_getmethods__["stop_reason"] = GetStopReason + if _newclass: x = property(GetStopReason, None) + + __swig_getmethods__["is_suspended"] = IsSuspended + if _newclass: x = property(IsSuspended, None) + %} + }; } // namespace lldb |