[PATCH] gdb: make signal_catch_counts a static array

Simon Marchi simon.marchi@polymtl.ca
Wed Oct 7 12:14:37 GMT 2020


On 2020-10-07 7:31 a.m., Pedro Alves wrote:
> On 10/7/20 4:23 AM, Simon Marchi via Gdb-patches wrote:
>> I noticed that signal_catch_counts is a dynamically-allocated array of
>> constant size, allocated at startup an never freed.  This might as well
>> be a statically-allocated array.
>>
>> gdb/ChangeLog:
>>
>> 	* break-catch-sig.c (signal_catch_counts): Make a static arrray.
>> 	(_initialize_break_catch_sig): Don't allocate array.
> 
> Looks obviously correct to me.

Thanks, I pushed it.

Simon


More information about the Gdb-patches mailing list