From 8eaf53202ea60191162d5f1069cd08ebd9f38f6c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 23 Feb 2017 10:36:20 -0500 Subject: Fix usage of inferior_ptid in two thread_alive implementations While inspecting some target code, I noticed that in these two implementations of thread_alive, inferior_ptid is referenced directly instead of using the ptid passed as parameters. I guess that it is wrong, although I can't really test it in both cases. gdb/ChangeLog: * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of inferior_ptid. * go32-nat.c (go32_thread_alive): Likewise. --- gdb/go32-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/go32-nat.c') diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 3e9e99f..1fca8e2 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -938,7 +938,7 @@ go32_terminal_ours (struct target_ops *self) static int go32_thread_alive (struct target_ops *ops, ptid_t ptid) { - return !ptid_equal (inferior_ptid, null_ptid); + return !ptid_equal (ptid, null_ptid); } static char * -- cgit v1.1