[gdb/symtab] Replace TYPE_ALLOC with TYPE_ZALLOC where required
authorTom de Vries <tdevries@suse.de>
Thu, 31 Aug 2023 07:37:44 +0000 (09:37 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 31 Aug 2023 07:37:44 +0000 (09:37 +0200)
commit959db212304e64751563bcaaacbdd28efd5016a7
tree425a452907842c0bfd488b23a870148e4f731a41
parent6d3c2d749be8fe1be7d7ba11596e40531cf3cf7c
[gdb/symtab] Replace TYPE_ALLOC with TYPE_ZALLOC where required

Handle the remaining uses of TYPE_ALLOC, either by:
- replacing with TYPE_ZALLOC, or
- adding a comment explaining why zero-initialization is not necessary.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.c
gdb/gdbtypes.c