aboutsummaryrefslogtreecommitdiff
path: root/gdb/spu-linux-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-07-12 22:16:34 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-07-12 22:16:34 +0000
commitd5b254911b8762c87f380aec389be5bf0d6ff4b0 (patch)
tree7b6f64bd3879f72cd775938caf64ba7e07df0e8e /gdb/spu-linux-nat.c
parent4474d12b51711449d9e9913d8d16260a2a06b6fc (diff)
downloadgdb-d5b254911b8762c87f380aec389be5bf0d6ff4b0.zip
gdb-d5b254911b8762c87f380aec389be5bf0d6ff4b0.tar.gz
gdb-d5b254911b8762c87f380aec389be5bf0d6ff4b0.tar.bz2
* spu-linux-nat.c: Include "gdbthread.h".
(spu_child_post_startup_inferior): Register main thread. (spu_child_post_attach): Likewise. * Makefile.in (spu-linux-nat.o): Update dependencies.
Diffstat (limited to 'gdb/spu-linux-nat.c')
-rw-r--r--gdb/spu-linux-nat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c
index 552f66f..e19b718 100644
--- a/gdb/spu-linux-nat.c
+++ b/gdb/spu-linux-nat.c
@@ -27,6 +27,7 @@
#include "regcache.h"
#include "symfile.h"
#include "gdb_wait.h"
+#include "gdbthread.h"
#include <sys/ptrace.h>
#include <asm/ptrace.h>
@@ -375,6 +376,8 @@ spu_child_post_startup_inferior (ptid_t ptid)
ptrace (PT_SYSCALL, tid, (PTRACE_TYPE_ARG3) 0, 0);
waitpid (tid, NULL, __WALL | __WNOTHREAD);
}
+
+ add_thread_silent (ptid);
}
/* Override the post_attach routine to try load the SPE executable
@@ -394,6 +397,8 @@ spu_child_post_attach (int pid)
waitpid (pid, NULL, __WALL | __WNOTHREAD);
}
+ add_thread_silent (inferior_ptid);
+
/* If the user has not provided an executable file, try to extract
the image from inside the target process. */
if (!get_exec_file (0))