* Copyright (c) 2013 Denys Vlasenko <vda.linux@googlemail.com>
* Copyright (c) 2011-2015 Dmitry V. Levin <ldv@altlinux.org>
* Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
+ * Copyright (c) 2015-2017 The strace developers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
printsigval(const siginfo_t *sip)
{
tprintf(", si_value={int=%d, ptr=", sip->si_int);
- printaddr((unsigned long) sip->si_ptr);
+ printaddr(ptr_to_kulong(sip->si_ptr));
tprints("}");
}
case SIGILL: case SIGFPE:
case SIGSEGV: case SIGBUS:
tprints(", si_addr=");
- printaddr((unsigned long) sip->si_addr);
+ printaddr(ptr_to_kulong(sip->si_addr));
break;
case SIGPOLL:
switch (sip->si_code) {
syscall_name((unsigned) sip->si_syscall);
tprints(", si_call_addr=");
- printaddr((unsigned long) sip->si_call_addr);
+ printaddr(ptr_to_kulong(sip->si_call_addr));
tprints(", si_syscall=");
if (scname)
tprintf("__NR_%s", scname);
}
MPERS_PRINTER_DECL(void, printsiginfo_at,
- struct tcb *tcp, long addr)
+ struct tcb *const tcp, const kernel_ulong_t addr)
{
siginfo_t si;
}
MPERS_PRINTER_DECL(void, print_siginfo_array, struct tcb *const tcp,
- const kernel_ureg_t addr, const unsigned long len)
+ const kernel_ulong_t addr, const kernel_ulong_t len)
{
siginfo_t si;