From 50952e9571ee97d10888a7f2cfe0106a921e5b57 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 14 Dec 2011 23:49:37 +0000 Subject: 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 --- lldb/scripts/Python/interface/SBTarget.i | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lldb/scripts/Python/interface') 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); }; -- cgit v1.2.3