[Lldb-commits] [PATCH] D103500: [trace][intel-pt] Create basic SB API

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 8 09:56:39 PDT 2021


wallace marked 9 inline comments as done.
wallace added inline comments.


================
Comment at: lldb/include/lldb/Target/Target.h:1137-1141
+  llvm::Expected<lldb::TraceSP &> CreateTrace();
+
+  /// If a \a Trace object is present, this returns it, otherwise a new Trace is
+  /// created with \a Trace::CreateTrace.
   llvm::Expected<lldb::TraceSP &> GetTraceOrCreate();
----------------
clayborg wrote:
> Do we need both of these?
GetTraceOrCreate is quite handy for the CommandObjects. And CreateTrace seems more correct from the SB API side, so I'd like to keep them there.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103500/new/

https://reviews.llvm.org/D103500



More information about the lldb-commits mailing list