summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-12-14 23:49:37 +0000
committerSean Callanan <scallanan@apple.com>2011-12-14 23:49:37 +0000
commit50952e9571ee97d10888a7f2cfe0106a921e5b57 (patch)
treeb835defe94f1da8c6055a1eeadf29dbeb1d64f9c /lldb/scripts/Python/interface
parent75d7d5e988539819d596f345d99c26a7aa3bd09b (diff)
downloadbcm5719-llvm-50952e9571ee97d10888a7f2cfe0106a921e5b57.tar.gz
bcm5719-llvm-50952e9571ee97d10888a7f2cfe0106a921e5b57.zip
I have added a function to SBTarget that allows
clients to disassemble a series of raw bytes as demonstrated by a new testcase. In the future, this API will also allow clients to provide a callback that adds comments for addresses in the disassembly. I also modified the SWIG harness to ensure that Python ByteArrays work as well as strings as sources of raw data. llvm-svn: 146611
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBTarget.i5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i
index 04dcfbf9d21..676a6c0bab4 100644
--- a/lldb/scripts/Python/interface/SBTarget.i
+++ b/lldb/scripts/Python/interface/SBTarget.i
@@ -470,7 +470,10 @@ public:
lldb::SBBroadcaster
GetBroadcaster () const;
-
+
+ lldb::SBInstructionList
+ GetInstructions (lldb::SBAddress base_addr, const void *buf, size_t size);
+
bool
GetDescription (lldb::SBStream &description, lldb::DescriptionLevel description_level);
};
OpenPOWER on IntegriCloud