From: Dmitry V. Levin Date: Tue, 11 Apr 2017 04:04:37 +0000 (+0000) Subject: startup_tcb: move get_scno invocation to a more convenient place X-Git-Tag: v4.17~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e3361d39c7dbfa3af7bfb4904a80557d2a739b1;p=strace startup_tcb: move get_scno invocation to a more convenient place * strace.c (trace): Move get_scno invocation ... (startup_tcb): ... here. This is a no-op change that slightly improves readability. --- diff --git a/strace.c b/strace.c index 17979538..6adb2c9f 100644 --- a/strace.c +++ b/strace.c @@ -2181,6 +2181,9 @@ startup_tcb(struct tcb *tcp) } } } + + if (get_scno(tcp) == 1) + tcp->s_prev_ent = tcp->s_ent; } static void @@ -2363,8 +2366,6 @@ trace(void) /* Is this the very first time we see this tracee stopped? */ if (tcp->flags & TCB_STARTUP) { startup_tcb(tcp); - if (get_scno(tcp) == 1) - tcp->s_prev_ent = tcp->s_ent; } sig = WSTOPSIG(status);