]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[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:36:58 +0000 (07:36 +0400)
commitb9f28929592990231bdce7b44369afc184a55f5d
tree548bb565cd994752b0f8443b1c3ed49480a7607b
parent19a5737950b966d0ff3e50c01bb43742a870bb9e
[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