summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBTraceCursor.cpp
AgeCommit message (Collapse)Author
2023-05-18[lldb] Guarantee the lifetimes of all strings returned from SBAPIAlex Langford
LLDB should guarantee that the strings returned by SBAPI methods live forever. I went through every method that returns a string and made sure that it was added to the ConstString StringPool before returning if it wasn't obvious that it was already doing so. I've also updated the docs to document this behavior. Differential Revision: https://reviews.llvm.org/D150804
2022-08-03[lldb] Add missing newlines after LLDB_INSTRUMENT_VAJonas Devlieghere
Add a newline after LLDB_INSTRUMENT_VA to match the output of lldb-instr and keep everything consistent.
2022-08-02fix f9b4ea0ce9efb4132a75551c40b2efc049e5b9f7Walter Erquinigo
This fixes https://lab.llvm.org/buildbot/#/builders/68/builds/37077.
2022-08-02[trace] Add SBTraceCursor bindingsJakob Johnson
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