[binutils-gdb/gdb-8.3-branch] Another fix for GDB styling

Eli Zaretskii eliz@sourceware.org
Fri Apr 12 12:38:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cd3c4bccf4684fd30d125ecd27146c79e5087b02

commit cd3c4bccf4684fd30d125ecd27146c79e5087b02
Author: Eli Zaretskii <eliz@gnu.org>
Date:   Fri Apr 12 15:35:57 2019 +0300

    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.
    
    (cherry picked from commit 51196bbc5618a3741bd7bbed01ac76b25a2e6f9c)

Diff:
---
 gdb/ChangeLog | 7 +++++++
 gdb/utils.c   | 4 ----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c6c7f2b..44e0e1e 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-03-26  Joel Brobecker  <brobecker@adacore.com>
 
 	* version.in: Set GDB version number to 8.2.91.DATE-git.
diff --git a/gdb/utils.c b/gdb/utils.c
index 8e3926d..dd686fa 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -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.  */
 }



More information about the Gdb-cvs mailing list