aboutsummaryrefslogtreecommitdiff
path: root/gdb/spu-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-07-16 09:33:42 -0600
committerTom Tromey <tom@tromey.com>2018-07-22 13:20:01 -0600
commitf4e80e1301f916ae7952abaf4ff1ebeac00951b3 (patch)
tree63b22e7679fb8cf64573ad1111035e7e33345732 /gdb/spu-tdep.c
parent8d49165d8382e29bff8d60d208934596e3994305 (diff)
downloadgdb-f4e80e1301f916ae7952abaf4ff1ebeac00951b3.zip
gdb-f4e80e1301f916ae7952abaf4ff1ebeac00951b3.tar.gz
gdb-f4e80e1301f916ae7952abaf4ff1ebeac00951b3.tar.bz2
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 <tom@tromey.com> * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
Diffstat (limited to 'gdb/spu-tdep.c')
-rw-r--r--gdb/spu-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c
index c85a740..6ae37f5 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,