From: Pedro Alves <pedro@palves.net>
To: gdb-patches@sourceware.org
Subject: [PATCH 6/6] Remove infrun_thread_thread_exit observer
Date: Sat, 3 Dec 2022 21:13:38 +0000 [thread overview]
Message-ID: <20221203211338.2264994-7-pedro@palves.net> (raw)
In-Reply-To: <20221203211338.2264994-1-pedro@palves.net>
After the previous patches, I believe this observer isn't necessary
anymore for anything. Remove it.
Change-Id: Idb33fb6b6f55589c8c523a92169b3ca95a23d0b9
---
gdb/infrun.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index f1afc4ba8e2..b24cc6d932d 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3605,14 +3605,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. */
@@ -9966,7 +9958,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");
--
2.36.0
next prev parent reply other threads:[~2022-12-03 21:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-03 21:13 [PATCH 0/6] Eliminate " Pedro Alves
2022-12-03 21:13 ` [PATCH 1/6] Tweak "Using the running image of ..." output Pedro Alves
2022-12-08 21:30 ` Simon Marchi
2022-12-03 21:13 ` [PATCH 2/6] Convert previous_inferior_ptid to strong reference to thread_info Pedro Alves
2022-12-03 21:13 ` [PATCH 3/6] Improve "info program" Pedro Alves
2022-12-03 21:13 ` [PATCH 4/6] Make follow_fork not rely on get_last_target_status Pedro Alves
2022-12-03 21:13 ` [PATCH 5/6] all-stop "follow-fork parent" and selecting another thread Pedro Alves
2022-12-03 21:13 ` Pedro Alves [this message]
2023-02-27 19:12 ` [PATCH 0/6] Eliminate infrun_thread_thread_exit observer Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221203211338.2264994-7-pedro@palves.net \
--to=pedro@palves.net \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).