Blame SOURCES/ltrace-0.7.2-e_machine.patch

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