summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBInstruction.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lldb/source/API/SBInstruction.cpp b/lldb/source/API/SBInstruction.cpp
index e46e8696ed0..a4ab1558fd0 100644
--- a/lldb/source/API/SBInstruction.cpp
+++ b/lldb/source/API/SBInstruction.cpp
@@ -116,7 +116,7 @@ SBInstruction::Print (FILE *out)
}
bool
-SBInstruction::EmulateWithFrame (lldb::SBFrame &frame)
+SBInstruction::EmulateWithFrame (lldb::SBFrame &frame, bool auto_advance_pc)
{
if (m_opaque_sp && frame.get())
{
@@ -126,6 +126,7 @@ SBInstruction::EmulateWithFrame (lldb::SBFrame &frame)
lldb_private::ArchSpec arch = target->GetArchitecture();
return m_opaque_sp->Emulate (arch,
+ auto_advance_pc,
(void *) frame.get(),
&lldb_private::EmulateInstruction::ReadMemoryFrame,
&lldb_private::EmulateInstruction::WriteMemoryFrame,
@@ -142,12 +143,8 @@ SBInstruction::DumpEmulation (const char *triple)
{
lldb_private::ArchSpec arch (triple, NULL);
- return m_opaque_sp->Emulate (arch,
- NULL,
- &lldb_private::EmulateInstruction::ReadMemoryDefault,
- &lldb_private::EmulateInstruction::WriteMemoryDefault,
- &lldb_private::EmulateInstruction::ReadRegisterDefault,
- &lldb_private::EmulateInstruction::WriteRegisterDefault);
+ return m_opaque_sp->DumpEmulation (arch);
+
}
return false;
}
OpenPOWER on IntegriCloud