From ec201f0cd1e6a0804822981fd7e25c99a3b39fd0 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 25 Oct 2014 22:07:54 -0700 Subject: [PATCH] symtab.c (lookup_symbol_aux_quick): Set block_found upon success. gdb/ChangeLog: * symtab.c (lookup_symbol_aux_quick): Set block_found upon success. --- gdb/ChangeLog | 4 ++++ gdb/symtab.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bff11412a67..6d10648174e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-10-25 Doug Evans + + * symtab.c (lookup_symbol_aux_quick): Set block_found upon success. + 2014-10-25 Doug Evans * dwarf2read.c (process_structure_scope): Remove second (nested) copy diff --git a/gdb/symtab.c b/gdb/symtab.c index c530d50ed05..2423b092928 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); } -- 2.30.2