strace: Treat void** the same as addr_t*.

This way, the actual value pointed to will be printed, instead of
the pointer itself.
This commit is contained in:
Augustin Cavalier
2023-03-28 15:24:54 -04:00
parent 7046e7cd8a
commit 7da3e2fcc4
+8
View File
@@ -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<void**> {
static inline TypeHandler *Create()
{
return TypeHandlerFactory<addr_t*>::Create();
}
};
// partial specialization for generic pointers
template<typename Type>
struct TypeHandlerFactory<Type*> {