- Fix crash due to gdb-readline-6.0-signal.patch (BZ 575516)

This commit is contained in:
Jan Kratochvil 2010-03-31 21:27:43 +00:00
parent 2ee26b3c6e
commit 2459ca53eb
2 changed files with 17 additions and 4 deletions

View File

@ -127,7 +127,7 @@ gdb/testsuite/
/* Any events already waiting in the queue? */
if (process_event ())
@@ -455,6 +459,16 @@ gdb_do_one_event (void *data)
@@ -455,6 +459,26 @@ gdb_do_one_event (void *data)
if (gdb_wait_for_event (1) < 0)
return -1;
@ -135,9 +135,19 @@ gdb/testsuite/
+ if (async_command_editing_p && RL_ISSTATE (RL_STATE_CALLBACK)
+ && _rl_caught_signal)
+ {
+ char *saved;
+
+ if (rl_prompt)
+ {
+ saved = alloca (strlen (rl_prompt) + 1);
+ strcpy (saved, rl_prompt);
+ }
+ else
+ saved = NULL;
+
+ /* Call RL_CHECK_SIGNALS this way. */
+ rl_callback_handler_remove ();
+ rl_callback_handler_install (NULL, input_handler);
+ rl_callback_handler_install (saved, input_handler);
+ }
+#endif
+

View File

@ -36,7 +36,7 @@ Version: 7.0.1
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
Release: 36%{?_with_upstream:.upstream}%{dist}
Release: 37%{?_with_upstream:.upstream}%{dist}
License: GPLv3+
Group: Development/Debuggers
@ -1085,7 +1085,10 @@ fi
%endif
%changelog
* Fri Mar 26 2010 Dennis Gilmore <dennis@ausil.us> - 7.0.1-36.fc12
* Wed Mar 31 2010 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.0.1-37.fc12
- Fix crash due to gdb-readline-6.0-signal.patch (BZ 575516)
* Fri Mar 26 2010 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.0.1-36.fc12
- Fix incorrect relocation of sections with duplicate name (BZ 575737).
* Fri Mar 26 2010 Dennis Gilmore <dennis@ausil.us> - 7.0.1-35.1