summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBInstruction.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/SBInstruction.i
parent6e1c0123855f6eacda37bd2c1bd9b29c8c99c1cb (diff)
downloadbcm5719-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/SBInstruction.i')
-rw-r--r--lldb/scripts/Python/interface/SBInstruction.i13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBInstruction.i b/lldb/scripts/Python/interface/SBInstruction.i
index 7be6e911ed0..a0595addf1c 100644
--- a/lldb/scripts/Python/interface/SBInstruction.i
+++ b/lldb/scripts/Python/interface/SBInstruction.i
@@ -62,6 +62,19 @@ public:
bool
TestEmulation (lldb::SBStream &output_stream, const char *test_file);
+
+ %pythoncode %{
+ __swig_getmethods__["addr"] = GetAddress
+ if _newclass: x = property(GetAddress, None)
+
+ __swig_getmethods__["size"] = GetByteSize
+ if _newclass: x = property(GetByteSize, None)
+
+ __swig_getmethods__["is_branch"] = DoesBranch
+ if _newclass: x = property(DoesBranch, None)
+ %}
+
+
};
} // namespace lldb
OpenPOWER on IntegriCloud