diff options
author | Eli Zaretskii <eliz@gnu.org> | 2009-05-01 08:14:00 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2009-05-01 08:14:00 +0000 |
commit | 89c9c2eca0353829ac9bf8999299ff1227c28deb (patch) | |
tree | 6524450e5efc3fe9903bb0121478f490088a241b /gdb/go32-nat.c | |
parent | 15430fc07a1f475c09b3136deb3ae5a39547586d (diff) | |
download | gdb-89c9c2eca0353829ac9bf8999299ff1227c28deb.zip gdb-89c9c2eca0353829ac9bf8999299ff1227c28deb.tar.gz gdb-89c9c2eca0353829ac9bf8999299ff1227c28deb.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/go32-nat.c')
-rw-r--r-- | gdb/go32-nat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index e49125f..b62d3ff 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 <main>"); - return buf; + return normal_pid_to_str (ptid); } static void |