From 33fa6727b7ce1c3aad6ef4bb24dff2ce3e3b2c7a Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 29 Jan 2020 09:15:13 -0800 Subject: [PATCH] [lldb/Reproducers] Add logging to the string template specialization Only the templated function had logging for deserialization. The string deserializer is implemented as a specialization and now prints to the log as well. --- lldb/source/Utility/ReproducerInstrumentation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Utility/ReproducerInstrumentation.cpp b/lldb/source/Utility/ReproducerInstrumentation.cpp index 10e4e3a14e60..46def9f59d7b 100644 --- a/lldb/source/Utility/ReproducerInstrumentation.cpp +++ b/lldb/source/Utility/ReproducerInstrumentation.cpp @@ -32,6 +32,10 @@ template <> const char *Deserializer::Deserialize() { return nullptr; const char *str = m_buffer.data(); m_buffer = m_buffer.drop_front(pos + 1); +#ifdef LLDB_REPRO_INSTR_TRACE + llvm::errs() << "Deserializing with " << LLVM_PRETTY_FUNCTION << " -> \"" + << str << "\"\n"; +#endif return str; }