Add `set print repeats' tests for C/C++ arrays
[binutils-gdb.git] / gdb / printcmd.c
index 03abd7576fc9a08c751cb80943b95ba0e68a082a..509f62c21c76f671763ad2d7d325d58b6a349b3d 100644 (file)
@@ -1,6 +1,6 @@
 /* Print values for GNU debugger GDB.
 
-   Copyright (C) 1986-2021 Free Software Foundation, Inc.
+   Copyright (C) 1986-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -1724,7 +1724,7 @@ info_address_command (const char *exp, int from_tty)
       break;
 
     case LOC_COMPUTED:
-      gdb_assert_not_reached (_("LOC_COMPUTED variable missing a method"));
+      gdb_assert_not_reached ("LOC_COMPUTED variable missing a method");
 
     case LOC_REGISTER:
       /* GDBARCH is the architecture associated with the objfile the symbol
@@ -2058,7 +2058,7 @@ map_display_numbers (const char *args,
                                      return item->number == num;
                                    });
          if (iter == all_displays.end ())
-           printf_unfiltered (_("No display number %d.\n"), num);
+           printf_filtered (_("No display number %d.\n"), num);
          else
            function (iter->get ());
        }
@@ -2253,7 +2253,7 @@ disable_display (int num)
        d->enabled_p = false;
        return;
       }
-  printf_unfiltered (_("No display number %d.\n"), num);
+  printf_filtered (_("No display number %d.\n"), num);
 }
 
 void
@@ -2274,7 +2274,7 @@ static void
 info_display_command (const char *ignore, int from_tty)
 {
   if (all_displays.empty ())
-    printf_unfiltered (_("There are no auto-display expressions now.\n"));
+    printf_filtered (_("There are no auto-display expressions now.\n"));
   else
     printf_filtered (_("Auto-display expressions now in effect:\n\
 Num Enb Expression\n"));