Add LoadTraceFromFile to SBDebugger and SBTrace
authorJakob Johnson <johnsonjakob99@gmail.com>
Fri, 17 Jun 2022 20:37:07 +0000 (13:37 -0700)
committerJakob Johnson <johnsonjakob99@gmail.com>
Mon, 20 Jun 2022 18:54:47 +0000 (11:54 -0700)
commit50f9367960725b450a9ef779d73e32a35031ee70
treeb24dbc1f08f3f9abb07b6bfc199735fb67f18443
parentad7ce1e7696148d093b96a6262ebc8fd5e216187
Add LoadTraceFromFile to SBDebugger and SBTrace

Add trace load functionality to SBDebugger via the `LoadTraceFromFile` method.
Update intelpt test case class to have `testTraceLoad` method so we can take advantage of
the testApiAndSB decorator to test both the CLI and SB without duplicating code.

Differential Revision: https://reviews.llvm.org/D128107
lldb/bindings/interface/SBDebugger.i
lldb/include/lldb/API/SBDebugger.h
lldb/include/lldb/API/SBFileSpec.h
lldb/include/lldb/API/SBTrace.h
lldb/include/lldb/Target/Trace.h
lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py
lldb/source/API/SBDebugger.cpp
lldb/source/API/SBTrace.cpp
lldb/source/Commands/CommandObjectTrace.cpp
lldb/source/Target/Trace.cpp
lldb/test/API/commands/trace/TestTraceLoad.py