aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-04-12 15:35:57 +0300
committerEli Zaretskii <eliz@gnu.org>2019-04-12 15:35:57 +0300
commit51196bbc5618a3741bd7bbed01ac76b25a2e6f9c (patch)
tree5a82d0c21872a35022bce50131ba0ae390d02072 /gdb
parent3bbec4bd95396936f21dbb07b79d2b6286b4cfec (diff)
downloadgdb-51196bbc5618a3741bd7bbed01ac76b25a2e6f9c.zip
gdb-51196bbc5618a3741bd7bbed01ac76b25a2e6f9c.tar.gz
gdb-51196bbc5618a3741bd7bbed01ac76b25a2e6f9c.tar.bz2
Another fix for GDB styling
gdb/ChangeLog: 2019-04-12 Eli Zaretskii <eliz@gnu.org> * utils.c (prompt_for_continue): Don't restore the styling at the end, as applied_style has the wrong value. This fixes styling in long lists of file names that are interrupted by the "Continue?" prompt.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/utils.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 33bcef3..ed054a9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2019-04-12 Eli Zaretskii <eliz@gnu.org>
+
+ * utils.c (prompt_for_continue): Don't restore the styling at the
+ end, as applied_style has the wrong value. This fixes styling in
+ long lists of file names that are interrupted by the "Continue?"
+ prompt.
+
2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
* ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
diff --git a/gdb/utils.c b/gdb/utils.c
index 700f54f..fa7a267 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1551,10 +1551,6 @@ prompt_for_continue (void)
reinitialize_more_filter ();
pagination_disabled_for_command = disable_pagination;
- /* Restore the current styling. */
- if (can_emit_style_escape (gdb_stdout))
- emit_style_escape (applied_style);
-
dont_repeat (); /* Forget prev cmd -- CR won't repeat it. */
}