Blame SOURCES/ltrace-0.7.2-e_machine.patch

e7106e
diff -up ltrace-0.7.2/proc.c\~ ltrace-0.7.2/proc.c
e7106e
--- ltrace-0.7.2/proc.c~	2014-02-13 12:16:33.000000000 +0100
e7106e
+++ ltrace-0.7.2/proc.c	2014-02-13 15:44:25.000000000 +0100
e7106e
@@ -194,9 +197,11 @@ process_init(struct process *proc, const
e7106e
 		goto fail;
e7106e
 	}
e7106e
 
e7106e
-	if (proc->leader != proc)
e7106e
-		return 0;
e7106e
-	if (process_init_main(proc) < 0) {
e7106e
+	if (proc->leader != proc) {
e7106e
+		proc->e_machine = proc->leader->e_machine;
e7106e
+		proc->e_class = proc->leader->e_class;
e7106e
+		get_arch_dep(proc);
e7106e
+	} else if (process_init_main(proc) < 0) {
e7106e
 		process_bare_destroy(proc, 0);
e7106e
 		goto fail;
e7106e
 	}
e7106e
e7106e
Diff finished.  Thu Feb 13 15:50:21 2014