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

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