gdb: (de-)allocate target_desc_info with new/delete
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 7 May 2021 20:28:56 +0000 (16:28 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 7 May 2021 20:28:56 +0000 (16:28 -0400)
commit0b2f7ade5352e698ded54760ee8b34092fdd164f
tree83cdc4158db66e4fba4371f24ccb36591179d7c6
parent820c449092aaee52e96676ffd7c9760126b85ad7
gdb: (de-)allocate target_desc_info with new/delete

In preparation for using non-POD types in the struct.

gdb/ChangeLog:

* target-descriptions.c (struct target_desc_info): Initialize
fields.
(get_tdesc_info): Use new.
(target_desc_info_free): Use delete.

Change-Id: I10fdaeeae7cdbd7930ae7adeeb13f7f363c67c7a
gdb/ChangeLog
gdb/target-descriptions.c