aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ada-lang.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c00ab1d..6684959 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2012-02-29 Joel Brobecker <brobecker@adacore.com>
+ * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
+ full searches.
+
+2012-02-29 Joel Brobecker <brobecker@adacore.com>
+
* ada-lang.c (constrained_packed_array_type): If there is a
parallel XA type, use it to determine the array index type.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index b1dbe32..cbdff3f 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -5069,10 +5069,10 @@ done:
ndefns = remove_extra_symbols (*results, ndefns);
- if (ndefns == 0)
+ if (ndefns == 0 && full_search)
cache_symbol (name0, namespace, NULL, NULL);
- if (ndefns == 1 && cacheIfUnique)
+ if (ndefns == 1 && full_search && cacheIfUnique)
cache_symbol (name0, namespace, (*results)[0].sym, (*results)[0].block);
ndefns = remove_irrelevant_renamings (*results, ndefns, block0);