summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBInstructionList.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2011-04-05 23:22:54 +0000
committerCaroline Tice <ctice@apple.com>2011-04-05 23:22:54 +0000
commit7c9dd3ce3c70301ed46f7eb1345a96cfd1fa37b0 (patch)
tree8025ab15ecf1ac7ce3cf56e0531c4acf55b69b0b /lldb/source/API/SBInstructionList.cpp
parentce6b047a1005bc1befa851b6ee68c5bf73386360 (diff)
downloadbcm5719-llvm-7c9dd3ce3c70301ed46f7eb1345a96cfd1fa37b0.tar.gz
bcm5719-llvm-7c9dd3ce3c70301ed46f7eb1345a96cfd1fa37b0.zip
Add Emulate and DumpEmulation to Instruction class.
Move InstructionLLVM out of DisassemblerLLVM class. Add instruction emulation function calls to SBInstruction and SBInstructionList APIs. llvm-svn: 128956
Diffstat (limited to 'lldb/source/API/SBInstructionList.cpp')
-rw-r--r--lldb/source/API/SBInstructionList.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/API/SBInstructionList.cpp b/lldb/source/API/SBInstructionList.cpp
index 312922fd825..c6fe572e22f 100644
--- a/lldb/source/API/SBInstructionList.cpp
+++ b/lldb/source/API/SBInstructionList.cpp
@@ -109,3 +109,18 @@ SBInstructionList::GetDescription (lldb::SBStream &description)
}
+bool
+SBInstructionList::DumpEmulationForAllInstructions (const char *triple)
+{
+ if (m_opaque_sp)
+ {
+ size_t len = GetSize();
+ for (size_t i = 0; i < len; ++i)
+ {
+ if (!GetInstructionAtIndex((uint32_t) i).DumpEmulation (triple))
+ return false;
+ }
+ }
+ return true;
+}
+
OpenPOWER on IntegriCloud