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:
parent
a4c9512294
commit
d93d9f8d7f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user