aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r--gdb/target-debug.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h
index d51754a..d9f7d46 100644
--- a/gdb/target-debug.h
+++ b/gdb/target-debug.h
@@ -209,20 +209,16 @@ target_debug_print_options (int options)
}
static void
-target_debug_print_signals (const 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);
}