From b15758fe2f30328ea28aa7b467efe32c70b5b388 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Fri, 2 Apr 2010 05:04:57 +0000 Subject: [PATCH] 2010-04-02 Hui Zhu * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless "*addr = 0". --- gdb/ChangeLog | 5 +++++ gdb/i386-tdep.c | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2adaa184e52..ce950500f68 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-04-02 Hui Zhu + + * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless + "*addr = 0". + 2010-04-02 Pedro Alves * tracepoint.c (trace_dump_actions): New, factored out from diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 9b4c93e027b..ee9f601b9fd 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)) -- 2.30.2