diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 037bbaf..65512a05 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -2285,16 +2285,17 @@ protected: lldb::eFilePermissionsFileDefault); } + if (m_options.m_continue && !m_last_id) { + // We need to stop processing data when we already ran out of instructions + // in a previous command. We can fake this by setting the cursor past the + // end of the trace. + cursor_up->Seek(1, TraceCursor::SeekType::End); + } + TraceInstructionDumper dumper( std::move(cursor_up), out_file ? *out_file : result.GetOutputStream(), m_options.m_dumper_options); - if (m_options.m_continue && !m_last_id) { - // We need to tell the dumper to stop processing data when - // we already ran out of instructions in a previous command - dumper.SetNoMoreData(); - } - m_last_id = dumper.DumpInstructions(m_options.m_count); return true; } |