printing a bogus "Thread <main>".
(go32_thread_alive): Don't return 1 for null_ptid.
2009-05-01 Eli Zaretskii <eliz@gnu.org>
+ * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
+ printing a bogus "Thread <main>".
+ (go32_thread_alive): Don't return 1 for null_ptid.
+
* i386-tdep.c (i386_go32_init_abi): Override the number of
registers due to non-support of SSE.
static int
go32_thread_alive (struct target_ops *ops, ptid_t ptid)
{
- return 1;
+ return !ptid_equal (inferior_ptid, null_ptid);
}
static char *
go32_pid_to_str (struct target_ops *ops, ptid_t ptid)
{
- static char buf[64];
- xsnprintf (buf, sizeof buf, "Thread <main>");
- return buf;
+ return normal_pid_to_str (ptid);
}
static void