[binutils-gdb] Remove two unused variables
Tom Tromey
tromey@sourceware.org
Tue Mar 22 17:21:23 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=de8fd80cf997516710c4f30e17e346e531cb2a4f
commit de8fd80cf997516710c4f30e17e346e531cb2a4f
Author: Tom Tromey <tom@tromey.com>
Date: Tue Mar 22 11:20:28 2022 -0600
Remove two unused variables
I found a couple of spots that declare a symtab_and_line but don't
actually use it. I think this probably isn't detected as unused
because it has a constructor.
Diff:
---
gdb/csky-tdep.c | 1 -
gdb/sparc-tdep.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c
index cba0065fa53..0d0381c293d 100644
--- a/gdb/csky-tdep.c
+++ b/gdb/csky-tdep.c
@@ -1526,7 +1526,6 @@ static CORE_ADDR
csky_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{
CORE_ADDR func_addr, func_end;
- struct symtab_and_line sal;
const int default_search_limit = 128;
/* See if we can find the end of the prologue using the symbol table. */
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 03242ed9866..78a4d44ed5d 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1126,7 +1126,6 @@ sparc_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
static CORE_ADDR
sparc32_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc)
{
- struct symtab_and_line sal;
CORE_ADDR func_addr;
struct sparc_frame_cache cache;
More information about the Gdb-cvs
mailing list