Blame SOURCES/strace-rh971352.patch

2f474b
diff -Nrup a/strace.c b/strace.c
2f474b
--- a/strace.c	2013-07-17 14:39:50.603696069 -0600
2f474b
+++ b/strace.c	2013-07-17 14:43:27.625962443 -0600
2f474b
@@ -2184,6 +2184,11 @@ handle_stopped_tcbs(struct tcb *tcp)
2f474b
 		status = tcp->wait_status;
2f474b
 		pid = tcp->pid;
2f474b
 
2f474b
+		/* we must re-fetch all registers for each pid in list */
2f474b
+		clear_regs();
2f474b
+		if (WIFSTOPPED(status))
2f474b
+			get_regs(pid);
2f474b
+
2f474b
                 event = ((unsigned)status >> 16);
2f474b
 		if (WIFSIGNALED(status)) {
2f474b
 			if (pid == strace_child)