From f4e80e1301f916ae7952abaf4ff1ebeac00951b3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 16 Jul 2018 09:33:42 -0600 Subject: [PATCH] Remove an unused variable from spu_get_overlay_table This removes an unused variable from spu_get_overlay_table, replacing it with an explanatory comment. gdb/ChangeLog 2018-07-22 Tom Tromey * spu-tdep.c (spu_get_overlay_table): Remove unused variable. --- gdb/ChangeLog | 4 ++++ gdb/spu-tdep.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2bbb8b3a9a9..67315f7e069 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-07-22 Tom Tromey + + * spu-tdep.c (spu_get_overlay_table): Remove unused variable. + 2018-07-22 Tom Tromey * guile/scm-value.c (gdbscm_value_call): Remove unused variables. diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c index c85a7407871..6ae37f58c7a 100644 --- a/gdb/spu-tdep.c +++ b/gdb/spu-tdep.c @@ -1820,8 +1820,8 @@ spu_get_overlay_table (struct objfile *objfile) { CORE_ADDR vma = extract_unsigned_integer (ovly_table + 16*i + 0, 4, byte_order); - CORE_ADDR size = extract_unsigned_integer (ovly_table + 16*i + 4, - 4, byte_order); + /* Note that this skips the "size" entry, which is at offset + 4. */ CORE_ADDR pos = extract_unsigned_integer (ovly_table + 16*i + 8, 4, byte_order); CORE_ADDR buf = extract_unsigned_integer (ovly_table + 16*i + 12, -- 2.30.2