diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-02 17:39:32 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-04 19:20:33 +1030 |
commit | ea933f17c3c6b9fa1daf8d03baa34f7bec855d6c (patch) | |
tree | eb3d7a89cd4756fe63701bdf134ead32a6e3cf08 /sim/v850 | |
parent | f24bdec48621f419fdc9dcd58f46891f062b7bc0 (diff) | |
download | gdb-ea933f17c3c6b9fa1daf8d03baa34f7bec855d6c.zip gdb-ea933f17c3c6b9fa1daf8d03baa34f7bec855d6c.tar.gz gdb-ea933f17c3c6b9fa1daf8d03baa34f7bec855d6c.tar.bz2 |
Release bfd_alloc memory in bfd_check_format_matches
It's a little tricky. We can release any memory back when we have a
match failure, but after a match success which we might want to
preserve for later use the high water mark must change to that of the
matched bfd.
* format.c (bfd_check_format_matches): Add preserve_match.
Save initial bfd state in "preserve", matched bfd state in
"preserve_match". Save just the first match. Release
bfd_alloc memory. Restore and finish preserved state as
appropriate on all function exit paths.
Diffstat (limited to 'sim/v850')
0 files changed, 0 insertions, 0 deletions