#include "value.h"
#include "target.h"
#include "thread.h"
+#include "command.h"
#include <sys/types.h>
#include <signal.h>
static struct thread_info *thread_list = NULL;
static int highest_thread_num;
-static void thread_info PARAMS ((void));
-
static void thread_command PARAMS ((char * tidstr, int from_tty));
static void prune_threads PARAMS ((void));
return 0; /* Never heard of 'im */
}
-#if 0
-void
-bfd_get_core_threads (abfd)
- bfd *abfd;
-{
- int i;
-
- inferior_pid = BUILDPID (inferior_pid, core_thread (abfd)->pid);
- for (i = 0; i < core_pss (abfd).threadcnt; i++)
- add_thread (core_thread (abfd)[i].pid);
-}
-#endif
-
static void
prune_threads ()
{
if (target_has_execution
&& kill (tp->pid, 0) == -1)
{
- tp->pid == -1; /* Mark it as dead */
+ tp->pid = -1; /* Mark it as dead */
continue;
}
return;
inferior_pid = pid;
- pc_changed = 0;
flush_cached_frames ();
registers_changed ();
stop_pc = read_pc();