Blame SOURCES/ltrace-0.7.2-e_machine.patch

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