This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug ada/17856] ada-lang.c resaves in cache symbol it just found in cache
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 02 Feb 2015 03:40:45 +0000
- Subject: [Bug ada/17856] ada-lang.c resaves in cache symbol it just found in cache
- Auto-submitted: auto-generated
- References: <bug-17856-4717 at http dot sourceware dot org/bugzilla/>
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.