From 7da3e2fcc43736e0f5e3f0f42e6a5c21cc007529 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 28 Mar 2023 15:24:36 -0400 Subject: [PATCH] strace: Treat void** the same as addr_t*. This way, the actual value pointed to will be printed, instead of the pointer itself. --- src/bin/debug/strace/TypeHandler.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bin/debug/strace/TypeHandler.h b/src/bin/debug/strace/TypeHandler.h index ca11583dd4..b4d7ed752b 100644 --- a/src/bin/debug/strace/TypeHandler.h +++ b/src/bin/debug/strace/TypeHandler.h @@ -149,6 +149,14 @@ DEFINE_FACTORY(uint_ptr, unsigned int *); DEFINE_FACTORY(ulong_ptr, unsigned long *); DEFINE_FACTORY(ulonglong_ptr, unsigned long long *); +template<> +struct TypeHandlerFactory { + static inline TypeHandler *Create() + { + return TypeHandlerFactory::Create(); + } +}; + // partial specialization for generic pointers template struct TypeHandlerFactory {