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

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