aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2010-04-02 05:04:57 +0000
committerHui Zhu <teawater@gmail.com>2010-04-02 05:04:57 +0000
commitb15758fe2f30328ea28aa7b467efe32c70b5b388 (patch)
tree4b60e38f324a172fa8f7c56c16d72566bfbed5a5 /gdb/i386-tdep.c
parentafd02f27b0ece4542cdd921572ab8ea2c9f021ba (diff)
downloadgdb-b15758fe2f30328ea28aa7b467efe32c70b5b388.zip
gdb-b15758fe2f30328ea28aa7b467efe32c70b5b388.tar.gz
gdb-b15758fe2f30328ea28aa7b467efe32c70b5b388.tar.bz2
2010-04-02 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_record_lea_modrm_addr): Remove useless "*addr = 0".
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 9b4c93e..ee9f601 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -3000,10 +3000,6 @@ i386_record_lea_modrm_addr (struct i386_record_s *irp, uint64_t *addr)
if (irp->regmap[X86_RECORD_R8_REGNUM] && !havesib)
*addr += irp->addr + irp->rip_offset;
}
- else
- {
- *addr = 0;
- }
break;
case 1:
if (target_read_memory (irp->addr, buf, 1))
@@ -3077,10 +3073,6 @@ i386_record_lea_modrm_addr (struct i386_record_s *irp, uint64_t *addr)
irp->rm = 0;
goto no_rm;
}
- else
- {
- *addr = 0;
- }
break;
case 1:
if (target_read_memory (irp->addr, buf, 1))