Remove an unused variable from spu_get_overlay_table
authorTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 15:33:42 +0000 (09:33 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 19:20:01 +0000 (13:20 -0600)
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.

gdb/ChangeLog
gdb/spu-tdep.c

index 2bbb8b3a9a9a00586383a24fda18c849feef8c92..67315f7e0693a48f65fa24ba46c3fc51af89cf00 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-22  Tom Tromey  <tom@tromey.com>
+
+       * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
+
 2018-07-22  Tom Tromey  <tom@tromey.com>
 
        * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
index c85a7407871fbb451e0edc9ed7ae43fc736a35af..6ae37f58c7a46754b45bee6664ef5404a1c52260 100644 (file)
@@ -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,