Revert 2008-03-21 changes.
authorDaniel Jacobowitz <drow@false.org>
Sun, 23 Mar 2008 17:29:34 +0000 (17:29 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 23 Mar 2008 17:29:34 +0000 (17:29 +0000)
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/annota2.exp
gdb/testsuite/gdb.cp/annota3.exp
gdb/top.c

index 42c4ea0d3086897e6eb359ed689e4c2a8b6ab809..ed25beba430398543ed1678d00cb4cc8befc7549 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR gdb/544
+       * top.c: Revert 2008-03-21 changes.
+
 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
 
        * thread.c (make_cleanup_restore_current_thread): Make it
index 5df1fb39c56d2d8c0c3c65021bfee52676b3e083..b754c235fa74d84bd2fca6c889f634d59d151ecd 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR gdb/544
+       * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Revert 2008-03-21 changes.
+
 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Remove KFAIL for
index 2dd9f4bfaef851f8c7d9d8f13504c9e7eca25b30..4cf6b711c13e90f5fa118a69bd5cb9803b2bc901 100644 (file)
@@ -205,10 +205,13 @@ gdb_expect {
 # test:
 # annotate-quit
 #
+# This test sometimes fails, but not reproducibly.  See gdb/544.
+#
 send_gdb "\003"
 gdb_expect {
     -re "\r\n\032\032error-begin\r\nQuit\r\n\r\n\032\032quit\r\n$gdb_prompt$" \
            { pass "annotate-quit" }
+    -re "$gdb_prompt$" { kfail "gdb/544" "annotate-quit" }
     -re ".*$gdb_prompt$" { fail "annotate-quit" }
     timeout { fail "annotate-quit (timeout)" }
 }
index 7b7e9f9acf5734a50dcc43af133d779227c8c849..c2d61682a0e6b03e3272d4f6ef608a8fd1d9088d 100644 (file)
@@ -208,6 +208,8 @@ gdb_expect {
 # test:
 # annotate-quit
 #
+# This test sometimes fails, but not reproducibly.  See gdb/544.
+#
 send_gdb "\003"
 gdb_expect_list "annotate-quit" "$gdb_prompt$" {
     "\r\n\032\032error-begin\r\n"
index 505b583250650cc03a5c3308df620f26a0c175c3..418ff8e95f07f7099fcc0a6faeb2e7fdbddce4e6 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -921,7 +921,7 @@ gdb_rl_operate_and_get_next_completion (void)
   operate_saved_history = -1;
 
   /* readline doesn't automatically update the display for us.  */
-  rl_redisplay_function ();
+  rl_redisplay ();
 
   after_char_processing_hook = NULL;
   rl_pre_input_hook = NULL;
@@ -956,29 +956,6 @@ gdb_rl_operate_and_get_next (int count, int key)
 
   return rl_newline (1, key);
 }
-
-/* Readline 5.2 and earlier do not block SIGINT while redrawing the prompt.
-   This can lead to corrupted internal state.  As long as we do not require
-   a newer readline version, compensate for it.  */
-static void
-gdb_rl_redisplay (void)
-{
-#if HAVE_SIGPROCMASK
-  sigset_t sigint_set, sigint_oset;
-
-  sigemptyset (&sigint_set);
-  sigemptyset (&sigint_oset);
-  sigaddset (&sigint_set, SIGINT);
-  sigprocmask (SIG_BLOCK, &sigint_set, &sigint_oset);
-#endif
-
-  rl_redisplay ();
-
-#if HAVE_SIGPROCMASK
-  sigprocmask (SIG_SETMASK, &sigint_oset, (sigset_t *)NULL);
-#endif
-}
-
 \f
 /* Read one line from the command input stream `instream'
    into the local static buffer `linebuffer' (whose current length
@@ -1604,7 +1581,6 @@ init_main (void)
   rl_completer_quote_characters = get_gdb_completer_quote_characters ();
   rl_readline_name = "gdb";
   rl_terminal_name = getenv ("TERM");
-  rl_redisplay_function = gdb_rl_redisplay;
 
   /* The name for this defun comes from Bash, where it originated.
      15 is Control-o, the same binding this function has in Bash.  */