[PATCH 0/4] Clear target async event handlers in wait method

Simon Marchi simon.marchi@efficios.com
Mon Nov 30 16:52:47 GMT 2020


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



More information about the Gdb-patches mailing list