This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] PR c++/71696 testcase.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 18 Nov 2016 08:19:27 -0500
- Subject: [binutils-gdb] PR c++/71696 testcase.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 9d2cdc86574bda0f1013be8cdc166d86b6d032bc ***
Author: Marcel Bhme <boehme.marcel@gmail.com>
Branch: master
Commit: 9d2cdc86574bda0f1013be8cdc166d86b6d032bc
PR c++/71696 testcase.
Add libiberty/testsuite/demangle-expected testcase for:
PR c++/71696
* cplus-dem.c: Prevent infinite recursion when there is a cycle
in the referencing of remembered mangled types.
(work_stuff): New stack to keep track of the remembered mangled
types that are currently being processed.
(push_processed_type): New method to push currently processed
remembered type onto the stack.
(pop_processed_type): New method to pop currently processed
remembered type from the stack.
(work_stuff_copy_to_from): Copy values of new variables.
(delete_non_B_K_work_stuff): Free stack memory.
(demangle_args): Push/Pop currently processed remembered type.
(do_type): Do not demangle a cyclic reference and push/pop
referenced remembered type.