[binutils-gdb] Use 'true' when assigning to sevenbit_strings

Tom Tromey via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d2892f64973a8e611893466a373799a62e62d571

commit d2892f64973a8e611893466a373799a62e62d571
Author: Tom Tromey <[email protected]>
Date:   Mon Mar 23 10:48:43 2026 -0600

    Use 'true' when assigning to sevenbit_strings
    
    MI assigns '1' to sevenbit_strings but should use 'true' instead.

Diff:
---
 gdb/mi/mi-interp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index 40c9fcb350c..a7b96c6a64c 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -246,7 +246,7 @@ mi_interp::pre_command_loop ()
 
   /* Turn off 8 bit strings in quoted output.  Any character with the
      high bit set is printed using C's octal format.  */
-  sevenbit_strings = 1;
+  sevenbit_strings = true;
 
   /* Tell the world that we're alive.  */
   display_mi_prompt (mi);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.