[Lldb-commits] [PATCH] D58566: [Reproducers] Add more logging capabilities to reproducer instrumentation
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 26 04:59:16 PST 2019
labath added a comment.
The overall idea seems fine to me, though I think it would be better to keep the macros simpler by moving all of the logic into the single `Register` call. I.e. the Register function would take extra StringRef arguments, which the macros would fill out. Then you could store the computed signature in the (possibly renamed) `m_ids` map, instead of having two maps with the same set of keys. That should save some space too.
================
Comment at: lldb/include/lldb/Utility/ReproducerInstrumentation.h:591
- LLDB_LOG(GetLogIfAllCategoriesSet(LIBLLDB_LOG_API), "Recording ({0}) '{1}'",
+#ifndef LLDB_REPRO_INSTR_TRACE
+ LLDB_LOG(GetLogIfAllCategoriesSet(LIBLLDB_LOG_API), "Recording {0}: {1}",
----------------
aprantl wrote:
> Who defines this macro? I'm asking because it's unusual for LLDB to emit anything on stderr.
I'm guessing it's the kind of thing you define by editing the source/cmake config, when you're really desperate to figure out what's going wrong.
Repository:
rLLDB LLDB
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58566/new/
https://reviews.llvm.org/D58566
More information about the lldb-commits
mailing list