diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-07-31 10:06:00 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-07-31 10:06:00 -0400 |
commit | 1c28969efcca7c214e41c496f599bc4de2c56dbe (patch) | |
tree | 9c9e936f78bd753835d67b3bd1b4ded178665754 /cpu/or1k.cpu | |
parent | 1424ad867742286be44932bf29720539add19ae0 (diff) | |
download | gdb-1c28969efcca7c214e41c496f599bc4de2c56dbe.zip gdb-1c28969efcca7c214e41c496f599bc4de2c56dbe.tar.gz gdb-1c28969efcca7c214e41c496f599bc4de2c56dbe.tar.bz2 |
Delete test target descriptions when exiting
Looking at the address sanitizer output, this was a quite low hanging
fruit. We create target_desc objects for testing that we never free.
Saving them in unique_ptrs takes care of it.
I created a small struct to hold these because I thought it would help
readability.
gdb/ChangeLog:
* target-descriptions.c (struct xml_test_tdesc): New.
(xml_tdesc): Change type to std::vector<xml_test_tdesc>.
(record_xml_tdesc): Update.
(maintenance_check_xml_descriptions): Update.
* target-descriptions.h (record_xml_tdesc): Update comment.
Diffstat (limited to 'cpu/or1k.cpu')
0 files changed, 0 insertions, 0 deletions