* Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
* Copyright (c) 2005-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
#include "xlat/sigaltstack_flags.h"
static void
-print_stack_t(struct tcb *const tcp, const kernel_ureg_t addr)
+print_stack_t(struct tcb *const tcp, const kernel_ulong_t addr)
{
stack_t ss;
return;
tprints("{ss_sp=");
- printaddr((kernel_ureg_t) ss.ss_sp);
+ printaddr(ptr_to_kulong(ss.ss_sp));
tprints(", ss_flags=");
printflags(sigaltstack_flags, ss.ss_flags, "SS_???");
- tprintf(", ss_size=%lu}", (kernel_ureg_t) ss.ss_size);
+ tprintf(", ss_size=%" PRI_klu "}", (kernel_ulong_t) ss.ss_size);
}
SYS_FUNC(sigaltstack)