[Lldb-commits] [PATCH] D104422: [trace] Add a TraceCursor class

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 18 15:45:00 PDT 2021


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


================
Comment at: lldb/include/lldb/Target/Trace.h:292
+  /// \return
+  ///     The stop ID of the live process being traced, or \b 0 if this is a
+  ///     post-mortem trace session.
----------------
clayborg wrote:
> zero is invalid. We should just have post mortem use a valid stop ID like 1
ahhhhh, good idea


================
Comment at: lldb/source/Target/Trace.cpp:478
+uint32_t Trace::GetStopID() {
+  RefreshLiveProcessState();
+  return m_stop_id;
----------------
clayborg wrote:
> We should make sure for core file that the m_stop_id is set correctly somehow
for a corefile the stop id is now set as 1 in Trace.h, which should be fine. RefreshLiveProcessState does nothing for a corefile, btw



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104422



More information about the lldb-commits mailing list