summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBInstructionList.cpp
diff options
context:
space:
mode:
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