diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2017-12-20 20:42:05 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-12-20 20:42:21 -0500 |
commit | 27e9ff87a627614fda7ddd89ddef745de5e988bb (patch) | |
tree | 42aeb95a8a2c6d9ef41cf9a0b22f29d133610c32 /gdb/rs6000-tdep.c | |
parent | 6eab0eaa1b71025cc1747396fdba127d25c209c0 (diff) | |
download | gdb-27e9ff87a627614fda7ddd89ddef745de5e988bb.zip gdb-27e9ff87a627614fda7ddd89ddef745de5e988bb.tar.gz gdb-27e9ff87a627614fda7ddd89ddef745de5e988bb.tar.bz2 |
Remove write-only assignment in rs6000-tdep.c
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.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 456dbcc..5d0ff1d 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -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; |