From df140a0bc3140bca133cd7ced6e18903db69c396 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Tue, 10 May 2016 21:33:45 -0400 Subject: [PATCH] fix up two issues with the removal of unused variables gdb/ChangeLog: 2016-05-10 Trevor Saunders * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard anything. * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname. --- gdb/ChangeLog | 6 ++++++ gdb/iq2000-tdep.c | 1 - gdb/linespec.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 519c6d1d7c4..9d652d7f6c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2016-05-10 Trevor Saunders + + * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard + anything. + * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname. + 2016-05-10 Thomas Preud'homme * arm-tdep.c (arm_elf_make_msymbol_special): Use diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c index 14d2afe2ab9..600d70a15f8 100644 --- a/gdb/iq2000-tdep.c +++ b/gdb/iq2000-tdep.c @@ -248,7 +248,6 @@ iq2000_scan_prologue (struct gdbarch *gdbarch, if (tgtreg >= 0 && tgtreg < E_NUM_REGS) cache->saved_regs[tgtreg] = -((signed short) (insn & 0xffff)); - if (tgtreg == E_LR_REGNUM) continue; } diff --git a/gdb/linespec.c b/gdb/linespec.c index c0c3b3b39c3..71621630b04 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -845,6 +845,8 @@ add_sal_to_sals (struct linespec_state *self, canonical = &self->canonical_names[sals->nelts - 1]; if (!literal_canonical && sal->symtab) { + symtab_to_fullname (sal->symtab); + /* Note that the filter doesn't have to be a valid linespec input. We only apply the ":LINE" treatment to Ada for the time being. */ -- 2.30.2