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

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