Add tcp argument to clear_regs

* defs.h (clear_regs): Add argument struct tcb *tcp.
* syscall.c (clear_regs): Likewise.
* strace.c (next_event): Pass tcp to clear_regs() call.
This commit is contained in:
Eugene Syromiatnikov 2017-12-26 00:09:41 +01:00 committed by Dmitry V. Levin
parent bf2e6250bb
commit 562abec971
3 changed files with 3 additions and 3 deletions

2
defs.h
View File

@ -400,7 +400,7 @@ extern void syscall_exiting_finish(struct tcb *);
extern void count_syscall(struct tcb *, const struct timeval *);
extern void call_summary(FILE *);
extern void clear_regs(void);
extern void clear_regs(struct tcb *tcp);
extern int get_scno(struct tcb *);
extern kernel_ulong_t get_rt_sigframe_addr(struct tcb *);

View File

@ -2273,7 +2273,7 @@ next_event(int *pstatus, siginfo_t *si)
return TE_NEXT;
}
clear_regs();
clear_regs(tcp);
/* Set current output file */
current_tcp = tcp;

View File

@ -1100,7 +1100,7 @@ static long get_regs_error;
#endif
void
clear_regs(void)
clear_regs(struct tcb *tcp)
{
#ifdef ptrace_getregset_or_getregs
get_regs_error = -1;