From: Eli Zaretskii Date: Fri, 1 May 2009 08:14:00 +0000 (+0000) Subject: * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of X-Git-Tag: sid-snapshot-20090601~316 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89c9c2eca0353829ac9bf8999299ff1227c28deb;p=thirdparty%2Fbinutils-gdb.git * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of printing a bogus "Thread
". (go32_thread_alive): Don't return 1 for null_ptid. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ed966f7ed7..df72f17f909 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2009-05-01 Eli Zaretskii + * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of + printing a bogus "Thread
". + (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. diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index e49125f36dc..b62d3ff318e 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -870,15 +870,13 @@ go32_terminal_ours (void) 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
"); - return buf; + return normal_pid_to_str (ptid); } static void