From bf9f21a28be171dc500cc68b4cb1fcd3fc33f229 Mon Sep 17 00:00:00 2001 From: Walter Erquinigo Date: Tue, 1 Jun 2021 15:34:06 -0700 Subject: [trace][intel-pt] Create basic SB API This adds a basic SB API for creating and stopping traces. Note: This doesn't add any APIs for inspecting individual instructions. That'd be a more complicated change and it might be better to enhande the dump functionality to output the data in binary format. I'll leave that for a later diff. This also enhances the existing tests so that they test the same flow using both the command interface and the SB API. I also did some cleanup of legacy code. Differential Revision: https://reviews.llvm.org/D103500 --- lldb/source/Commands/CommandObjectProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 4aeef67..ad608a6 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -1581,7 +1581,7 @@ public: TraceSP trace_sp = process_sp->GetTarget().GetTrace(); - if (llvm::Error err = trace_sp->StopProcess()) + if (llvm::Error err = trace_sp->Stop()) result.SetError(toString(std::move(err))); else result.SetStatus(eReturnStatusSuccessFinishResult); -- cgit v1.1