]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Another fix for GDB styling
authorEli Zaretskii <eliz@gnu.org>
Fri, 12 Apr 2019 12:35:57 +0000 (15:35 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 12 Apr 2019 12:37:48 +0000 (15:37 +0300)
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.

(cherry picked from commit 51196bbc5618a3741bd7bbed01ac76b25a2e6f9c)

gdb/ChangeLog
gdb/utils.c

index c6c7f2bfb1d2a17ffcbe1991519908f9613b3a50..44e0e1eed03d1b29753a066b66b8dfe5aa5b5455 100644 (file)
@@ -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-03-26  Joel Brobecker  <brobecker@adacore.com>
 
        * version.in: Set GDB version number to 8.2.91.DATE-git.
index 8e3926dea124a5f3cd44deec9b900d18be9a3827..dd686fa8aa2601603507ec6da461a6a61df7f907 100644 (file)
@@ -1562,10 +1562,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.  */
 }