This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/17856] ada-lang.c resaves in cache symbol it just found in cache


https://sourceware.org/bugzilla/show_bug.cgi?id=17856

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-7.9-branch branch has been updated by Joel Brobecker
<brobecke@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b9f28929592990231bdce7b44369afc184a55f5d

commit b9f28929592990231bdce7b44369afc184a55f5d
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Mon Feb 2 07:28:12 2015 +0400

    [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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]