Fix multiple personalities support in decoding syscall return values

* syscall.c (trace_syscall_exiting): When current personality is 32bit,
print 32bit return code.
This commit is contained in:
Дмитрий Левин 2015-02-28 23:41:11 +00:00
parent a4c9512294
commit d93d9f8d7f

View File

@ -2450,6 +2450,12 @@ trace_syscall_exiting(struct tcb *tcp)
else {
switch (sys_res & RVAL_MASK) {
case RVAL_HEX:
#if SUPPORTED_PERSONALITIES > 1
if (current_wordsize < sizeof(long))
tprintf("= %#x",
(unsigned int) tcp->u_rval);
else
#endif
tprintf("= %#lx", tcp->u_rval);
break;
case RVAL_OCTAL: