Skip to content

Commit 8e21d7b

Browse files
committed
[lldb/Reproducer] Include deserialized value in log statement
Extend the replay log statement to include the deserialized value.
1 parent 6dea612 commit 8e21d7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/include/lldb/Utility/ReproducerInstrumentation.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,12 @@ class Deserializer {
280280

281281
/// Deserialize and interpret value as T.
282282
template <typename T> T Deserialize() {
283+
T t = Read<T>(typename serializer_tag<T>::type());
283284
#ifdef LLDB_REPRO_INSTR_TRACE
284-
llvm::errs() << "Deserializing with " << LLVM_PRETTY_FUNCTION << "\n";
285+
llvm::errs() << "Deserializing with " << LLVM_PRETTY_FUNCTION << " -> "
286+
<< stringify_args(t) << "\n";
285287
#endif
286-
return Read<T>(typename serializer_tag<T>::type());
288+
return t;
287289
}
288290

289291
/// Store the returned value in the index-to-object mapping.

0 commit comments

Comments
 (0)