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.
This commit is contained in:
Tom Tromey 2018-07-16 09:33:42 -06:00
parent 8d49165d83
commit f4e80e1301
2 changed files with 6 additions and 2 deletions

View 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.

View 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,