diff options
author | Jakob Johnson <johnsonjakob99@gmail.com> | 2022-08-01 12:23:22 -0700 |
---|---|---|
committer | Jakob Johnson <johnsonjakob99@gmail.com> | 2022-08-02 16:55:33 -0700 |
commit | f9b4ea0ce9efb4132a75551c40b2efc049e5b9f7 (patch) | |
tree | f06dda7a0f52486d1096bb6ea4a35a9b4b1a8da0 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 3dfa5626434bf1e9f110e63e8224a66004f42eca (diff) | |
download | llvm-f9b4ea0ce9efb4132a75551c40b2efc049e5b9f7.zip llvm-f9b4ea0ce9efb4132a75551c40b2efc049e5b9f7.tar.gz llvm-f9b4ea0ce9efb4132a75551c40b2efc049e5b9f7.tar.bz2 |
[trace] Add SBTraceCursor bindings
Add bindings for the `TraceCursor` to allow for programatic traversal of
traces.
This diff adds bindings for all public `TraceCursor` methods except
`GetHwClock` and also adds `SBTrace::CreateNewCursor`. A new unittest
has been added to TestTraceLoad.py that uses the new `SBTraceCursor` API
to test that the sequential and random access APIs of the `TraceCursor`
are equivalent.
This diff depends on D130925.
Test Plan:
`ninja lldb-dotest && ./bin/lldb-dotest -p TestTraceLoad`
Differential Revision: https://reviews.llvm.org/D130930
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 9aa128a..76457d1 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -2295,7 +2295,7 @@ protected: // 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_sp->Seek(1, TraceCursor::SeekType::End); + cursor_sp->Seek(1, lldb::eTraceCursorSeekTypeEnd); } TraceDumper dumper(std::move(cursor_sp), |