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/SBAddress.i | |
parent | 6e1c0123855f6eacda37bd2c1bd9b29c8c99c1cb (diff) | |
download | llvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.zip llvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.tar.gz llvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.tar.bz2 |
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/SBAddress.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBAddress.i | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBAddress.i b/lldb/scripts/Python/interface/SBAddress.i index 88cf0c4..47fa67b 100644 --- a/lldb/scripts/Python/interface/SBAddress.i +++ b/lldb/scripts/Python/interface/SBAddress.i @@ -82,6 +82,9 @@ public: lldb::SBSection GetSection (); + lldb::addr_t + SBAddress::GetOffset (); + %feature("docstring", " //------------------------------------------------------------------ /// GetSymbolContext() and the following can lookup symbol information for a given address. @@ -124,6 +127,37 @@ public: lldb::SBLineEntry GetLineEntry (); + + %pythoncode %{ + __swig_getmethods__["module"] = GetModule + if _newclass: x = property(GetModule, None) + + __swig_getmethods__["compile_unit"] = GetCompileUnit + if _newclass: x = property(GetCompileUnit, None) + + __swig_getmethods__["line_entry"] = GetLineEntry + if _newclass: x = property(GetLineEntry, None) + + __swig_getmethods__["function"] = GetFunction + if _newclass: x = property(GetFunction, None) + + __swig_getmethods__["block"] = GetBlock + if _newclass: x = property(GetBlock, None) + + __swig_getmethods__["symbol"] = GetSymbol + if _newclass: x = property(GetSymbol, None) + + __swig_getmethods__["offset"] = GetOffset + if _newclass: x = property(GetOffset, None) + + __swig_getmethods__["section"] = GetSection + if _newclass: x = property(GetSection, None) + + __swig_getmethods__["file_addr"] = GetFileAddress + if _newclass: x = property(GetFileAddress, None) + + %} + }; } // namespace lldb |