[Ada] Do not re-cache symbol-lookup result found from cache lookup.
authorJoel Brobecker <brobecker@adacore.com>
Mon, 2 Feb 2015 03:28:12 +0000 (07:28 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 2 Feb 2015 03:28:12 +0000 (07:28 +0400)
commitb1eedac962b9d935ecb40725a614f6fa6cb0783a
treedba4d76ac445402c0f2526f2a6a8a2c5b293edb2
parent66c168ae56fa2d67f821ccae774fd25c695fd9ce
[Ada] Do not re-cache symbol-lookup result found from cache lookup.

When ada-lang.c:ada_lookup_symbol_list_worker finds a match in
the symbol cache, it caches the result again, which is unecessary.
This patch fixes the code to avoid that.

gdb/ChangeLog:

        PR gdb/17856:
        * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
        results found in the cache.

Tested on x86_64-linux, no regression.
gdb/ChangeLog
gdb/ada-lang.c