binutils-gdb/gdb/testsuite/gdb.dlang
Iain Buclaw 38899f16e1 Don't recursively look for a symbol in all imports of imported modules.
Given two or more modules that import each other's scope, the current symbol
lookup routines would go round in circles looking through each import from
each module, possibly checking the same module twice or more until all possible
paths are marked as "searched".

Given enough modules, this causes an exponential slowdown in time taken to find
symbols that do exist, and infinite recursion when they don't.

gdb/ChangeLog:
	* d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
	cyclic imports.

gdb/testsuite/ChangeLog:
	* gdb.dlang/circular.c: New file.
	* gdb.dlang/circular.exp: New file.
2016-02-28 16:11:26 +01:00
..
circular.c Don't recursively look for a symbol in all imports of imported modules. 2016-02-28 16:11:26 +01:00
circular.exp Don't recursively look for a symbol in all imports of imported modules. 2016-02-28 16:11:26 +01:00
demangle.exp Align dlang demangle tests with libiberty. 2016-01-28 21:47:44 +01:00
expression.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
primitive-types.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
properties.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00