diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-03-23 17:29:34 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-03-23 17:29:34 +0000 |
commit | 12f4afab79d6b54e89df93df342e1fe6009bd2cd (patch) | |
tree | 34f688e1bb4cf80ff06a473841d94f8b1aecc083 /gdb/top.c | |
parent | 6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e (diff) | |
download | gdb-12f4afab79d6b54e89df93df342e1fe6009bd2cd.zip gdb-12f4afab79d6b54e89df93df342e1fe6009bd2cd.tar.gz gdb-12f4afab79d6b54e89df93df342e1fe6009bd2cd.tar.bz2 |
Revert 2008-03-21 changes.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 26 |
1 files changed, 1 insertions, 25 deletions
@@ -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 -} - /* 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. */ |