forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
90c31b0f42
commit
33fa6727b7
|
@ -32,6 +32,10 @@ template <> const char *Deserializer::Deserialize<const char *>() {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue