[pushed] Use 'true' when assigning to sevenbit_strings

Message ID 20260323165821.1935966-1-tromey@adacore.com
State New
Headers
Series [pushed] Use 'true' when assigning to sevenbit_strings |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom Tromey March 23, 2026, 4:58 p.m. UTC
  MI assigns '1' to sevenbit_strings but should use 'true' instead.
---
 gdb/mi/mi-interp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 285072c3d5612f8eeaf3d621346ab4a2586c7bf0
  

Patch

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);