aboutsummaryrefslogtreecommitdiff
path: root/etc/update-copyright.py
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-09-24 14:37:16 +0930
committerAlan Modra <amodra@gmail.com>2017-09-24 16:17:19 +0930
commit52a93b95ec0771c97e26f0bb28630a271a667bd2 (patch)
treef966107445013272e6477c7e53a63dbedeb0a86c /etc/update-copyright.py
parentd8010d3e75ec7194a4703774090b27486b742d48 (diff)
downloadgdb-52a93b95ec0771c97e26f0bb28630a271a667bd2.zip
gdb-52a93b95ec0771c97e26f0bb28630a271a667bd2.tar.gz
gdb-52a93b95ec0771c97e26f0bb28630a271a667bd2.tar.bz2
PR22187, infinite loop in find_abstract_instance_name
This patch prevents the simple case of infinite recursion in find_abstract_instance_name by ensuring that the attributes being processed are not the same as the previous call. The patch also does a little cleanup, and leaves in place some changes to the nested_funcs array that I made when I wrongly thought looping might occur in scan_unit_for_symbols. PR 22187 * dwarf2.c (find_abstract_instance_name): Add orig_info_ptr and pname param. Return status. Make name const. Don't abort, return an error. Formatting. Exit if current info_ptr matches orig_info_ptr. Update callers. (scan_unit_for_symbols): Start at nesting_level of zero. Make nested_funcs an array of structs for extensibility. Formatting.
Diffstat (limited to 'etc/update-copyright.py')
0 files changed, 0 insertions, 0 deletions