Remove write-only assignment in rs6000-tdep.c
authorUros Bizjak <ubizjak@gmail.com>
Thu, 21 Dec 2017 01:42:05 +0000 (20:42 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 21 Dec 2017 01:42:21 +0000 (20:42 -0500)
The result of this memory read is never used, so it can be removed.

gdb/ChangeLog:

* rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
write-only assignment to "insn" variable.

gdb/ChangeLog
gdb/rs6000-tdep.c

index dc6406ac0c6a88aca466416b520ab8d6df831e94..4f2c5c33c89212061646b2c0e4e8f92689d71f97 100644 (file)
@@ -1,3 +1,8 @@
+2017-12-20  Uros Bizjak  <ubizjak@gmail.com>
+
+       * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
+       write-only assignment to "insn" variable.
+
 2017-12-20  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit
index 456dbcccb1876e54358c73e0361010e8f204fe4b..5d0ff1d8b1b7e2c9235e38697851a951c39f346a 100644 (file)
@@ -1226,7 +1226,6 @@ ppc_deal_with_atomic_sequence (struct regcache *regcache)
 
   closing_insn = loc;
   loc += PPC_INSN_SIZE;
-  insn = read_memory_integer (loc, PPC_INSN_SIZE, byte_order);
 
   /* Insert a breakpoint right after the end of the atomic sequence.  */
   breaks[0] = loc;