Now that the fork_inferior takes care of adding the main thread for the target_create_inferior case, and inf_ptrace_attach adds it for the target_attach case, the SPU target, which extends the ptrace target should no longer add it. Unfortunatelly, I have no means to test this. Ulrich, does this look OK? You only need patches 1, 2 and this one for the SPU changes. OK? -- Pedro Alves