From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH 0/4] Clear target async event handlers in wait method
Date: Mon, 30 Nov 2020 11:52:47 -0500 [thread overview]
Message-ID: <20201130165251.830482-1-simon.marchi@efficios.com> (raw)
This change started out as part of some work I intend to submit at a
later time, related to how infrun consumes target events. However, I
noticed it would address PR 26614 ("AddressSanitizer:
heap-use-after-free of extended_remote_target in
remote_async_inferior_event_handler"). And in my opinion it's a
desirable change no matter what, because it simplifies things a little
bit. So I extracted it and am submitting it on its own.
Simon Marchi (4):
gdb: make async event handlers clear themselves
gdb: make remote target clear its async event handler in wait
gdb: make record-btrace target clear its async event handler in wait
gdb: make record-full target clear its async event handler in wait
gdb/async-event.c | 1 -
gdb/async-event.h | 9 +++++++++
gdb/infrun.c | 1 +
gdb/record-btrace.c | 3 +++
gdb/record-full.c | 2 ++
gdb/remote-notif.c | 4 +++-
gdb/remote.c | 25 +++++++++----------------
7 files changed, 27 insertions(+), 18 deletions(-)
--
2.29.2
next reply other threads:[~2020-11-30 16:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 16:52 Simon Marchi via Gdb-patches [this message]
2020-11-30 16:52 ` [PATCH 1/4] gdb: make async event handlers clear themselves Simon Marchi via Gdb-patches
2020-12-24 17:26 ` Andrew Burgess
2021-02-04 17:42 ` Pedro Alves
2021-02-04 18:15 ` Simon Marchi via Gdb-patches
2020-11-30 16:52 ` [PATCH 2/4] gdb: make remote target clear its async event handler in wait Simon Marchi via Gdb-patches
2020-12-24 17:23 ` Andrew Burgess
2020-12-24 17:44 ` Simon Marchi via Gdb-patches
2021-02-04 18:00 ` Pedro Alves
2021-02-04 18:34 ` Simon Marchi via Gdb-patches
2020-11-30 16:52 ` [PATCH 3/4] gdb: make record-btrace " Simon Marchi via Gdb-patches
2021-01-06 9:50 ` Andrew Burgess
2020-11-30 16:52 ` [PATCH 4/4] gdb: make record-full " Simon Marchi via Gdb-patches
2021-01-06 9:51 ` Andrew Burgess
2020-12-23 21:31 ` [PATCH 0/4] Clear target async event handlers in wait method Simon Marchi via Gdb-patches
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=20201130165251.830482-1-simon.marchi@efficios.com \
--to=gdb-patches@sourceware.org \
--cc=simon.marchi@efficios.com \
/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