This change complements commit
v4.9-359-gd93d9f8 by fixing
RVAL_UDECIMAL case.
The only syscall that appears to be affected is the times syscall.
* syscall.c (trace_syscall_exiting): In case of RVAL_UDECIMAL,
when current personality is 32-bit, print 32-bit return code.
* NEWS: Mention this fix.
Reported-by: Steve McIntyre <steve@einval.com>
* Bug fixes
* Fixed build on arc, metag, nios2, or1k, and tile architectures.
+ * Fixed decoding of 32-bit times syscall return value on 64-bit architectures.
Noteworthy changes in release 4.11 (2015-12-21)
===============================================
tprintf("= %#lo", tcp->u_rval);
break;
case RVAL_UDECIMAL:
- tprintf("= %lu", tcp->u_rval);
+#if SUPPORTED_PERSONALITIES > 1
+ if (current_wordsize < sizeof(long))
+ tprintf("= %u",
+ (unsigned int) tcp->u_rval);
+ else
+#endif
+ tprintf("= %lu", tcp->u_rval);
break;
case RVAL_DECIMAL:
tprintf("= %ld", tcp->u_rval);