* spu-linux-nat.c (spu_child_post_startup_inferior)
(spu_child_post_attach): Don't add the main thread here.
This commit is contained in:
parent
617fd3b510
commit
4189d2f820
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-09-08 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* spu-linux-nat.c (spu_child_post_startup_inferior)
|
||||||
|
(spu_child_post_attach): Don't add the main thread here.
|
||||||
|
|
||||||
2008-09-08 Pedro Alves <pedro@codesourcery.com>
|
2008-09-08 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
Use ptid_t.tid to store thread ids instead of ptid_t.pid.
|
Use ptid_t.tid to store thread ids instead of ptid_t.pid.
|
||||||
|
|
|
@ -376,8 +376,6 @@ spu_child_post_startup_inferior (ptid_t ptid)
|
||||||
ptrace (PT_SYSCALL, tid, (PTRACE_TYPE_ARG3) 0, 0);
|
ptrace (PT_SYSCALL, tid, (PTRACE_TYPE_ARG3) 0, 0);
|
||||||
waitpid (tid, NULL, __WALL | __WNOTHREAD);
|
waitpid (tid, NULL, __WALL | __WNOTHREAD);
|
||||||
}
|
}
|
||||||
|
|
||||||
add_thread_silent (ptid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Override the post_attach routine to try load the SPE executable
|
/* Override the post_attach routine to try load the SPE executable
|
||||||
|
@ -397,8 +395,6 @@ spu_child_post_attach (int pid)
|
||||||
waitpid (pid, NULL, __WALL | __WNOTHREAD);
|
waitpid (pid, NULL, __WALL | __WNOTHREAD);
|
||||||
}
|
}
|
||||||
|
|
||||||
add_thread_silent (inferior_ptid);
|
|
||||||
|
|
||||||
/* If the user has not provided an executable file, try to extract
|
/* If the user has not provided an executable file, try to extract
|
||||||
the image from inside the target process. */
|
the image from inside the target process. */
|
||||||
if (!get_exec_file (0))
|
if (!get_exec_file (0))
|
||||||
|
|
Loading…
Reference in a new issue