(spu_child_post_startup_inferior): Register main thread.
(spu_child_post_attach): Likewise.
* Makefile.in (spu-linux-nat.o): Update dependencies.
+2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * 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.
+
2008-07-12 Pedro Alves <pedro@codesourcery.com>
Rewrite continuations internals on top of cleanups and plug
$(value_h) $(gdb_assert_h) $(gdb_string_h) $(sparc_tdep_h)
spu-linux-nat.o: spu-linux-nat.c $(defs_h) $(gdbcore_h) $(gdb_string_h) \
$(target_h) $(inferior_h) $(inf_ptrace_h) $(regcache_h) $(symfile_h) \
- $(gdb_wait_h) $(spu_tdep_h)
+ $(gdb_wait_h) $(gdbthread_h) $(spu_tdep_h)
spu-tdep.o: spu-tdep.c $(defs_h) $(arch_utils_h) $(gdbtypes_h) $(gdbcmd_h) \
$(gdbcore_h) $(gdb_string_h) $(gdb_assert_h) $(frame_h) \
$(frame_unwind_h) $(frame_base_h) $(trad_frame_h) $(symtab_h) \
#include "regcache.h"
#include "symfile.h"
#include "gdb_wait.h"
+#include "gdbthread.h"
#include <sys/ptrace.h>
#include <asm/ptrace.h>
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
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))