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/SBModule.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/SBModule.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBModule.i | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBModule.i b/lldb/scripts/Python/interface/SBModule.i index 08e5c184114..547b4a27357 100644 --- a/lldb/scripts/Python/interface/SBModule.i +++ b/lldb/scripts/Python/interface/SBModule.i @@ -236,6 +236,43 @@ public: FindGlobalVariables (lldb::SBTarget &target, const char *name, uint32_t max_matches); + + lldb::ByteOrder + GetByteOrder (); + + uint32_t + GetAddressByteSize(); + + const char * + GetTriple (); + + %pythoncode %{ + __swig_getmethods__["file"] = GetFileSpec + if _newclass: x = property(GetFileSpec, None) + + __swig_getmethods__["platform_file"] = GetPlatformFileSpec + if _newclass: x = property(GetPlatformFileSpec, None) + + __swig_getmethods__["uuid"] = GetUUIDString + if _newclass: x = property(GetUUIDString, None) + + __swig_getmethods__["byte_order"] = GetByteOrder + if _newclass: x = property(GetByteOrder, None) + + __swig_getmethods__["addr_size"] = GetAddressByteSize + if _newclass: x = property(GetAddressByteSize, None) + + __swig_getmethods__["triple"] = GetTriple + if _newclass: x = property(GetTriple, None) + + __swig_getmethods__["num_symbols"] = GetNumSymbols + if _newclass: x = property(GetNumSymbols, None) + + __swig_getmethods__["num_sections"] = GetNumSections + if _newclass: x = property(GetNumSections, None) + + %} + }; } // namespace lldb |