Blame SOURCES/readline-6.2-gdb.patch

b13877
diff -up ./complete.c.old ./complete.c
b13877
--- ./complete.c.old	2012-01-11 14:26:23.610354454 +0100
b13877
+++ ./complete.c	2012-01-11 14:31:44.073348115 +0100
b13877
@@ -485,7 +485,7 @@ get_y_or_n (for_pager)
b13877
      driven functions.  Have to wait until next major version to add new
b13877
      state definition, since it will change value of RL_STATE_DONE. */
b13877
 #if defined (READLINE_CALLBACKS)
b13877
-  if (RL_ISSTATE (RL_STATE_CALLBACK))
b13877
+  if (RL_ISSTATE (RL_STATE_CALLBACK) && (! RL_ISSTATE (RL_STATE_FEDORA_GDB)))
b13877
     return 1;
b13877
 #endif
b13877
 
b13877
diff -up ./readline.h.old ./readline.h
b13877
--- ./readline.h.old	2012-01-11 14:25:55.049711510 +0100
b13877
+++ ./readline.h	2012-01-11 14:28:22.854863691 +0100
b13877
@@ -840,6 +840,8 @@ extern int rl_inhibit_completion;
b13877
 
b13877
 #define RL_STATE_DONE		0x1000000	/* done; accepted line */
b13877
 
b13877
+#define RL_STATE_FEDORA_GDB		0x2000000	/* exception for fedora gdb */
b13877
+
b13877
 #define RL_SETSTATE(x)		(rl_readline_state |= (x))
b13877
 #define RL_UNSETSTATE(x)	(rl_readline_state &= ~(x))
b13877
 #define RL_ISSTATE(x)		(rl_readline_state & (x))