Split rank_one_type_parm_complex from rank_one_type
[deliverable/binutils-gdb.git] / gdb / target-debug.h
index 1e904b95d6086785619d4d2f44fe970e314f4323..d9f7d46dd92e74cd2dcd290a94f03e94b395f33f 100644 (file)
@@ -1,6 +1,6 @@
 /* GDB target debugging macros
 
-   Copyright (C) 2014-2018 Free Software Foundation, Inc.
+   Copyright (C) 2014-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -209,20 +209,16 @@ target_debug_print_options (int options)
 }
 
 static void
-target_debug_print_signals (unsigned char *sigs)
+target_debug_print_signals (gdb::array_view<const unsigned char> sigs)
 {
   fputs_unfiltered ("{", gdb_stdlog);
-  if (sigs != NULL)
-    {
-      int i;
-
-      for (i = 0; i < GDB_SIGNAL_LAST; i++)
-       if (sigs[i])
-         {
-           fprintf_unfiltered (gdb_stdlog, " %s",
-                               gdb_signal_to_name ((enum gdb_signal) i));
-         }
-    }
+
+  for (size_t i = 0; i < sigs.size (); i++)
+    if (sigs[i] != 0)
+      {
+       fprintf_unfiltered (gdb_stdlog, " %s",
+                           gdb_signal_to_name ((enum gdb_signal) i));
+      }
   fputs_unfiltered (" }", gdb_stdlog);
 }
 
This page took 0.025627 seconds and 4 git commands to generate.