]> granicus.if.org Git - strace/commit
strace.c: introduce struct tcb_wait_data
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 14 Aug 2018 13:43:34 +0000 (13:43 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 19 Aug 2018 10:26:18 +0000 (10:26 +0000)
commit14ae61f37b7c4ec236f011ab5c5866b43f6766b4
tree2395b3341c16db643a570109581b40b3f915a448
parent2d88ec9e392edc2652ad5617498765f21af2b611
strace.c: introduce struct tcb_wait_data

Introduce a new structure to pass information between next_event(),
restart_delayed_tcb(), and dispatch_event().

This is going to be used by a subsequent change of next_event().

* strace.c (struct tcb_wait_data): New type.
(next_event): Remove parameters, return a pointer
to const struct tcb_wait_data.  Return NULL instead of TE_BREAK.
(dispatch_event): Replace all parameters with a pointer
to const struct tcb_wait_data, obtain the trace event, siginfo,
and status from its fields.
(restart_delayed_tcb): Add local struct tcb_wait_data variable
with te field set to TE_RESTART, pass it to dispatch_event().
(main): Remove status and si variables, update next_event()
and dispatch_event() invocations.

Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
strace.c