[PATCH 0/2] Fix GDB prompt corruption issue

Andrew Burgess aburgess@redhat.com
Mon Mar 7 15:13:13 GMT 2022


This series fixes PR cli/28833.  The first commit is a patch to
readline, which is based on an existing, upstream, readline commit.
See my commit message for more details.

The second patch fixes GDB to make use of the new reaadline features
in order to fix the prompt corruption issue.

Thanks,
Andrew


---

Andrew Burgess (2):
  readline: back-port changes needed to properly detect EOF
  gdb: handle bracketed-paste-mode and ctrl-d correctly

 gdb/event-top.c                     | 61 ++++++++++++++++++++
 gdb/event-top.h                     |  6 ++
 gdb/testsuite/gdb.base/eof-exit.exp | 88 +++++++++++++++++++++++++++++
 gdb/testsuite/lib/gdb.exp           |  9 +++
 gdb/top.c                           |  1 +
 readline/readline/callback.c        |  8 ++-
 readline/readline/doc/rltech.texi   | 11 ++++
 readline/readline/readline.c        | 19 ++++---
 readline/readline/readline.h        |  8 ++-
 readline/readline/rlprivate.h       |  1 -
 readline/readline/rltty.c           |  4 +-
 11 files changed, 204 insertions(+), 12 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/eof-exit.exp

-- 
2.25.4



More information about the Gdb-patches mailing list