diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/break-catch-sig.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2744ad8..6a69e63 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-10-07 Simon Marchi <simon.marchi@polymtl.ca> + + * break-catch-sig.c (signal_catch_counts): Make a static arrray. + (_initialize_break_catch_sig): Don't allocate array. + 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com> * symtab.c (find_pc_line): Return unmapped addresses when the diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index e3e6f6f..5c7cdf1 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -60,7 +60,7 @@ static struct breakpoint_ops signal_catchpoint_ops; /* Count of each signal. */ -static unsigned int *signal_catch_counts; +static unsigned int signal_catch_counts[GDB_SIGNAL_LAST]; @@ -430,8 +430,6 @@ _initialize_break_catch_sig () { initialize_signal_catchpoint_ops (); - signal_catch_counts = XCNEWVEC (unsigned int, GDB_SIGNAL_LAST); - add_catch_command ("signal", _("\ Catch signals by their names and/or numbers.\n\ Usage: catch signal [[NAME|NUMBER] [NAME|NUMBER]...|all]\n\ |