[Lldb-commits] [PATCH] D101094: lldb/Instrumentation: NFC-ish use GetFrameCodeAddressForSymbolication()
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 22 13:55:38 PDT 2021
teemperor 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);
----------------
shafik wrote:
> 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.
I think the format `/*pc_are_call_addresses=*/true);` is what LLVM is using (with that format clang-tidy will check that the argument fits the parameter name).
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