Change printargs to return RVAL_DECODED
As printargs is invoked as a generic syscall decoder only and it is not supposed to print anything on exiting, change printargs to return RVAL_DECODED so it would not be called on exiting at all. * util.c (printargs): Print args unconditionally, return RVAL_DECODED.
This commit is contained in:
12
util.c
12
util.c
@ -1504,13 +1504,11 @@ getarg_ull(struct tcb *tcp, int argn)
|
||||
int
|
||||
printargs(struct tcb *tcp)
|
||||
{
|
||||
if (entering(tcp)) {
|
||||
int i;
|
||||
int n = tcp->s_ent->nargs;
|
||||
for (i = 0; i < n; i++)
|
||||
tprintf("%s%#llx", i ? ", " : "", getarg_ull(tcp, i));
|
||||
}
|
||||
return 0;
|
||||
const int n = tcp->s_ent->nargs;
|
||||
int i;
|
||||
for (i = 0; i < n; ++i)
|
||||
tprintf("%s%#llx", i ? ", " : "", getarg_ull(tcp, i));
|
||||
return RVAL_DECODED;
|
||||
}
|
||||
|
||||
int
|
||||
|
Reference in New Issue
Block a user