* [pushed] Remove two unused variables
@ 2022-03-22 17:21 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-03-22 17:21 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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.
---
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;
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-22 17:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 17:21 [pushed] Remove two unused variables Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).