Blame SOURCES/ltrace-0.7.2-e_machine.patch

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