aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-10-25 22:07:54 -0700
committerDoug Evans <xdje42@gmail.com>2014-10-25 22:07:54 -0700
commitec201f0cd1e6a0804822981fd7e25c99a3b39fd0 (patch)
treeab1470f7a3122e6b172c39b4e9aa8d3c66fd1da5
parentca040673e070391c8e5c35a12ef6b33fe03128ad (diff)
downloadgdb-ec201f0cd1e6a0804822981fd7e25c99a3b39fd0.zip
gdb-ec201f0cd1e6a0804822981fd7e25c99a3b39fd0.tar.gz
gdb-ec201f0cd1e6a0804822981fd7e25c99a3b39fd0.tar.bz2
symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
gdb/ChangeLog: * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/symtab.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bff1141..6d10648 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2014-10-25 Doug Evans <xdje42@gmail.com>
+ * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
+
+2014-10-25 Doug Evans <xdje42@gmail.com>
+
* dwarf2read.c (process_structure_scope): Remove second (nested) copy
of local var child_die.
diff --git a/gdb/symtab.c b/gdb/symtab.c
index c530d50..2423b09 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1771,6 +1771,7 @@ lookup_symbol_aux_quick (struct objfile *objfile, int kind,
sym = lookup_block_symbol (block, name, domain);
if (!sym)
error_in_psymtab_expansion (kind, name, symtab);
+ block_found = block;
return fixup_symbol_section (sym, objfile);
}