aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-03-07 13:49:21 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-04-22 18:46:04 +0100
commit4fb7bc4b147fd30b781ea2dad533956d0362295a (patch)
treecd4da5ab2f797bb9b0defa9242b6cf0a9c7fe386 /gdb/top.c
parentgdb: improved EOF handling when using readline 7 (diff)
downloadbinutils-gdb-4fb7bc4b147fd30b781ea2dad533956d0362295a.tar.gz
binutils-gdb-4fb7bc4b147fd30b781ea2dad533956d0362295a.tar.bz2
binutils-gdb-4fb7bc4b147fd30b781ea2dad533956d0362295a.zip
readline: back-port changes needed to properly detect EOF
This commit is a partial back-port of this upstream readline commit: commit 002d31aa5f5929eb32d0e0e2e8b8d35d99e59961 Author: Chet Ramey <chet.ramey@case.edu> Date: Thu Mar 3 11:11:47 2022 -0500 add rl_eof_found to public API; fix pointer aliasing problems \ with history-search-backward; fix a display problem with \ runs of invisible characters at the end of a physical \ screen line I have only pulled in the parts of this commit that relate to the new rl_eof_found global, and the RL_STATE_EOF state flag. These changes are needed in order to fix PR cli/28833, and are discussed in this thread to the bug-readline mailing list: https://lists.gnu.org/archive/html/bug-readline/2022-02/msg00021.html The above commit is not yet in any official readline release, but my hope is that now it has been merged into the readline tree it should be safe enough to back port this fix to GDB's tree. At some point in the future we will inevitably want to roll forward the version of readline that we maintain in the binutils-gdb repository. When that day comes the changes in this commit can be replaced with the latest upstream readline code, as I have not changed the meaning of this code at all from what is in upstream readline. This commit alone does not fix the PR cli/28833 issue, for that see the next commit, which changes GDB itself. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28833
Diffstat (limited to 'gdb/top.c')
0 files changed, 0 insertions, 0 deletions