From 0f063ba6b41276a18f3f60380ce16fcd58b20484 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Sat, 2 Mar 2013 00:26:47 +0000 Subject: Convert from the C-based LLVM Disassembler shim to the full MC Disassembler API's. Calculate "can branch" using the MC API's rather than our hand-rolled regex'es. As extra credit, allow setting the disassembly flavor for x86 based architectures to intel or att. llvm-svn: 176392 --- lldb/scripts/Python/interface/SBFunction.i | 3 +++ lldb/scripts/Python/interface/SBSymbol.i | 3 +++ lldb/scripts/Python/interface/SBTarget.i | 6 ++++++ 3 files changed, 12 insertions(+) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBFunction.i b/lldb/scripts/Python/interface/SBFunction.i index 8eee92f28d5..0b4d1f2cbb4 100644 --- a/lldb/scripts/Python/interface/SBFunction.i +++ b/lldb/scripts/Python/interface/SBFunction.i @@ -65,6 +65,9 @@ public: lldb::SBInstructionList GetInstructions (lldb::SBTarget target); + lldb::SBInstructionList + GetInstructions (lldb::SBTarget target, const char *flavor); + lldb::SBAddress GetStartAddress (); diff --git a/lldb/scripts/Python/interface/SBSymbol.i b/lldb/scripts/Python/interface/SBSymbol.i index a3656972469..a2cec0ec73e 100644 --- a/lldb/scripts/Python/interface/SBSymbol.i +++ b/lldb/scripts/Python/interface/SBSymbol.i @@ -38,6 +38,9 @@ public: lldb::SBInstructionList GetInstructions (lldb::SBTarget target); + lldb::SBInstructionList + GetInstructions (lldb::SBTarget target, const char *flavor_string); + SBAddress GetStartAddress (); diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i index c4fe24be4d5..4e3161eedf9 100644 --- a/lldb/scripts/Python/interface/SBTarget.i +++ b/lldb/scripts/Python/interface/SBTarget.i @@ -703,9 +703,15 @@ public: lldb::SBInstructionList ReadInstructions (lldb::SBAddress base_addr, uint32_t count); + lldb::SBInstructionList + ReadInstructions (lldb::SBAddress base_addr, uint32_t count, const char *flavor_string); + lldb::SBInstructionList GetInstructions (lldb::SBAddress base_addr, const void *buf, size_t size); + lldb::SBInstructionList + GetInstructionsWithFlavor (lldb::SBAddress base_addr, const char *flavor_string, const void *buf, size_t size); + lldb::SBSymbolContextList FindSymbols (const char *name, lldb::SymbolType type = eSymbolTypeAny); -- cgit v1.2.3