2010-04-02 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Fri, 2 Apr 2010 05:04:57 +0000 (05:04 +0000)
committerHui Zhu <teawater@gmail.com>
Fri, 2 Apr 2010 05:04:57 +0000 (05:04 +0000)
* i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
"*addr = 0".

gdb/ChangeLog
gdb/i386-tdep.c

index 2adaa184e52478e334f3c09af6e78d2710340196..ce950500f68f57854085822b9fcb0f305b060307 100644 (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
index 9b4c93e027b480ff96d256d45d2ade58e15b1c18..ee9f601b9fdeed9cda0200a2d498970b827086d6 100644 (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))