From 4fdebdd056c03d3bee6673beacbb6be2e1496219 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 15 May 2008 20:11:48 +0000 Subject: * linux-nat.c (trap_ptid): Delete. (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior): Adjust. * linux-thread-db.c (thread_db_wait): Adjust. --- gdb/linux-thread-db.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gdb/linux-thread-db.c') diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index c7aaf6065d8..2ae2f5c70a1 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -823,8 +823,6 @@ check_event (ptid_t ptid) static ptid_t thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus) { - extern ptid_t trap_ptid; - ptid = target_beneath->to_wait (ptid, ourstatus); if (ourstatus->kind == TARGET_WAITKIND_IGNORE) @@ -861,9 +859,6 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus) event gets postponed by other simultaneous events. In such a case, we want to just ignore the event and continue on. */ - if (!ptid_equal (trap_ptid, null_ptid)) - trap_ptid = thread_from_lwp (trap_ptid); - ptid = thread_from_lwp (ptid); if (GET_PID (ptid) == -1) ourstatus->kind = TARGET_WAITKIND_SPURIOUS; -- cgit v1.2.1