Blame SOURCES/gdb-readline62-ask-more-rh.patch

4c2ad1
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
4c2ad1
From: Fedora GDB patches <invalid@email.com>
4c2ad1
Date: Fri, 27 Oct 2017 21:07:50 +0200
4c2ad1
Subject: gdb-readline62-ask-more-rh.patch
4c2ad1
4c2ad1
;; Work around readline-6.2 incompatibility not asking for --more-- (BZ 701131).
4c2ad1
;;=fedora
4c2ad1
4c2ad1
diff --git a/gdb/event-top.c b/gdb/event-top.c
4c2ad1
--- a/gdb/event-top.c
4c2ad1
+++ b/gdb/event-top.c
4c2ad1
@@ -1183,6 +1183,13 @@ gdb_setup_readline (int editing)
4c2ad1
 {
4c2ad1
   struct ui *ui = current_ui;
4c2ad1
 
4c2ad1
+#ifdef NEED_RL_STATE_FEDORA_GDB
4c2ad1
+  /* 6.2 regression: no longed asks for --more--
4c2ad1
+     gdb.base/readline-ask.exp
4c2ad1
+     https://bugzilla.redhat.com/show_bug.cgi?id=701131  */
4c2ad1
+  RL_SETSTATE (RL_STATE_FEDORA_GDB);
4c2ad1
+#endif
4c2ad1
+
4c2ad1
   /* This function is a noop for the sync case.  The assumption is
4c2ad1
      that the sync setup is ALL done in gdb_init, and we would only
4c2ad1
      mess it up here.  The sync stuff should really go away over