[Lldb-commits] [PATCH] D101094: lldb/Instrumentation: NFC-ish use GetFrameCodeAddressForSymbolication()
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 22 13:41:55 PDT 2021
shafik added inline comments.
================
Comment at: lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/InstrumentationRuntimeMainThreadChecker.cpp:273
+ ThreadSP new_thread_sp = std::make_shared<HistoryThread>(
+ *process_sp, tid, PCs, pcs_are_call_addresses);
----------------
A nitpick but you could have also done:
```
ThreadSP new_thread_sp = std::make_shared<HistoryThread>(
*process_sp, tid, PCs, true /*pcs_are_call_addresses*/);
```
Otherwise I would have made `pcs_are_call_addresses` a constant since you are using purely for documentation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101094/new/
https://reviews.llvm.org/D101094
More information about the lldb-commits
mailing list