This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/3] Fix remote async crashes.


When testing with gdbserver in async mode, I noticed a few ERRORs in
the log.  Turns out that GDB is crashing due to a use-after-free now
made more visible due to -lmcheck.

Patch 3 fixes the issue.  Patches 1 and 2 get old unnecessary code out
of the way.

I'll apply this on Monday, barring comments.

---

Pedro Alves (3):
      do_serial_close, remove early return.
      serial.c: remove #if 0'd code, and associated unnecessary bits.
      Fix GDB crashes with remote async/non-stop.


 gdb/ser-base.c |   30 ++++++--
 gdb/serial.c   |  219 ++++++--------------------------------------------------
 gdb/serial.h   |   29 ++++++-
 3 files changed, 72 insertions(+), 206 deletions(-)

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]