From 50cba466e5e791ca454ebd9511b17535d6d50db5 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 23 Dec 2016 23:02:21 +0000 Subject: [PATCH] process: change tracee address type from unsigned long to kernel_ureg_t * process.c (print_user_offset_addr): Change address argument type from unsigned long to kernel_ureg_t. (SYS_FUNC(ptrace)): Change addr variable type from unsigned long to kernel_ureg_t. --- process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/process.c b/process.c index 083283dc..580ee10f 100644 --- a/process.c +++ b/process.c @@ -57,7 +57,7 @@ static const struct xlat struct_user_offsets[] = { }; static void -print_user_offset_addr(const unsigned long addr) +print_user_offset_addr(const kernel_ureg_t addr) { const struct xlat *x; @@ -74,7 +74,7 @@ print_user_offset_addr(const unsigned long addr) } else { --x; tprintf("%s + %lu", - x->str, addr - (unsigned long) x->val); + x->str, addr - (kernel_ureg_t) x->val); } } else { tprints(x->str); @@ -85,7 +85,7 @@ SYS_FUNC(ptrace) { const unsigned long request = tcp->u_arg[0]; const int pid = tcp->u_arg[1]; - const unsigned long addr = tcp->u_arg[2]; + const kernel_ureg_t addr = tcp->u_arg[2]; const unsigned long data = tcp->u_arg[3]; if (entering(tcp)) { -- 2.40.0