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,7 +2450,13 @@ trace_syscall_exiting(struct tcb *tcp)
|
|||||||
else {
|
else {
|
||||||
switch (sys_res & RVAL_MASK) {
|
switch (sys_res & RVAL_MASK) {
|
||||||
case RVAL_HEX:
|
case RVAL_HEX:
|
||||||
tprintf("= %#lx", tcp->u_rval);
|
#if SUPPORTED_PERSONALITIES > 1
|
||||||
|
if (current_wordsize < sizeof(long))
|
||||||
|
tprintf("= %#x",
|
||||||
|
(unsigned int) tcp->u_rval);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
tprintf("= %#lx", tcp->u_rval);
|
||||||
break;
|
break;
|
||||||
case RVAL_OCTAL:
|
case RVAL_OCTAL:
|
||||||
tprintf("= %#lo", tcp->u_rval);
|
tprintf("= %#lo", tcp->u_rval);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user