aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/interface/SBFunction.i
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-01-29 06:07:39 +0000
committerGreg Clayton <gclayton@apple.com>2012-01-29 06:07:39 +0000
commit13d1950ae6eaf579cbecab1c0515d58f5fa2b648 (patch)
tree082fa177e8ac54f51cf9cec03db79f892dd39985 /lldb/scripts/Python/interface/SBFunction.i
parent6e1c0123855f6eacda37bd2c1bd9b29c8c99c1cb (diff)
downloadllvm-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/SBFunction.i')
-rw-r--r--lldb/scripts/Python/interface/SBFunction.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBFunction.i b/lldb/scripts/Python/interface/SBFunction.i
index ac3d123..76c8066 100644
--- a/lldb/scripts/Python/interface/SBFunction.i
+++ b/lldb/scripts/Python/interface/SBFunction.i
@@ -76,6 +76,25 @@ public:
bool
GetDescription (lldb::SBStream &description);
+
+ %pythoncode %{
+ __swig_getmethods__["name"] = GetName
+ if _newclass: x = property(GetName, None)
+
+ __swig_getmethods__["mangled"] = GetMangledName
+ if _newclass: x = property(GetMangledName, None)
+
+ __swig_getmethods__["start_addr"] = GetStartAddress
+ if _newclass: x = property(GetStartAddress, None)
+
+ __swig_getmethods__["end_addr"] = GetEndAddress
+ if _newclass: x = property(GetEndAddress, None)
+
+ __swig_getmethods__["prologue_size"] = GetPrologueByteSize
+ if _newclass: x = property(GetPrologueByteSize, None)
+
+ %}
+
};
} // namespace lldb