From 8e3361d39c7dbfa3af7bfb4904a80557d2a739b1 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 11 Apr 2017 04:04:37 +0000 Subject: [PATCH] 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. --- strace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.50.1