Remove infrun_thread_thread_exit observer
authorPedro Alves <pedro@palves.net>
Wed, 16 Nov 2022 17:01:44 +0000 (17:01 +0000)
committerPedro Alves <pedro@palves.net>
Mon, 27 Feb 2023 19:12:28 +0000 (19:12 +0000)
After the previous patches, I believe this observer isn't necessary
anymore for anything.  Remove it.

Change-Id: Idb33fb6b6f55589c8c523a92169b3ca95a23d0b9

gdb/infrun.c

index beb9ca793899c555f4b6e5e7ba7026a1d4d07be1..79e1a6abd2aa57232d2193d03a5f587ca9db75b8 100644 (file)
@@ -3606,14 +3606,6 @@ infrun_thread_stop_requested (ptid_t ptid)
     }
 }
 
-static void
-infrun_thread_thread_exit (struct thread_info *tp, int silent)
-{
-  if (target_last_proc_target == tp->inf->process_target ()
-      && target_last_wait_ptid == tp->ptid)
-    nullify_last_target_wait_ptid ();
-}
-
 /* Delete the step resume, single-step and longjmp/exception resume
    breakpoints of TP.  */
 
@@ -10023,7 +10015,6 @@ enabled by default on some platforms."),
                                              "infrun");
   gdb::observers::thread_stop_requested.attach (infrun_thread_stop_requested,
                                                "infrun");
-  gdb::observers::thread_exit.attach (infrun_thread_thread_exit, "infrun");
   gdb::observers::inferior_exit.attach (infrun_inferior_exit, "infrun");
   gdb::observers::inferior_execd.attach (infrun_inferior_execd, "infrun");