gdb: pass signature to allocate_signatured_type and signatured_type constructor
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 31 May 2021 16:33:32 +0000 (12:33 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 31 May 2021 16:33:32 +0000 (12:33 -0400)
commit9ea36493f6e9963cbe09f1c72fbc50a732d5a932
tree8f0b4a938e7df4a6781dcd42c98d5d1e743d87ad
parent46c6bcf650644ae22941ccb49dfe5fbb6e185513
gdb: pass signature to allocate_signatured_type and signatured_type constructor

All signatured_type constucted (even those used only for lookups in hash
maps) need a signature.  Enforce that by passing the signature all the
way to the signatured_type constructor.

gdb/ChangeLog:

* dwarf2/read.h (struct structured_type) <signatured_type>: New.
Update all callers.
(struct dwarf2_per_bfd) <allocate_signatured_type>: Add
signature parameter, update all callers.
* dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
signature parameter.

Change-Id: I99bc1f88f54127666aa133ddbbabb7f7668fa14a
gdb/ChangeLog
gdb/dwarf2/read.c
gdb/dwarf2/read.h