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
expression.exp
primitive-types.exp
properties.exp