2010-04-02 Hui Zhu <teawater@gmail.com>

* i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
	"*addr = 0".
This commit is contained in:
Hui Zhu 2010-04-02 05:04:57 +00:00
parent afd02f27b0
commit b15758fe2f
2 changed files with 5 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2010-04-02 Hui Zhu <teawater@gmail.com>
* i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
"*addr = 0".
2010-04-02 Pedro Alves <pedro@codesourcery.com>
* tracepoint.c (trace_dump_actions): New, factored out from

View File

@ -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))