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:
@@ -149,6 +149,14 @@ DEFINE_FACTORY(uint_ptr, unsigned int *);
|
|||||||
DEFINE_FACTORY(ulong_ptr, unsigned long *);
|
DEFINE_FACTORY(ulong_ptr, unsigned long *);
|
||||||
DEFINE_FACTORY(ulonglong_ptr, unsigned long 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
|
// partial specialization for generic pointers
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
struct TypeHandlerFactory<Type*> {
|
struct TypeHandlerFactory<Type*> {
|
||||||
|
|||||||
Reference in New Issue
Block a user