2007-07-31 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 21:49:21 +0000 (21:49 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 21:49:21 +0000 (21:49 +0000)
* exec.c (xfer_memory): Remove redundant condition from 'if'.

gdb/ChangeLog
gdb/exec.c

index 54d610ef27f4ebdf7206eb41a29b8b77931a4e1a..4acf4e7c380bf3b8030cc0293cc90c0399fad539 100644 (file)
@@ -1,5 +1,7 @@
 2007-07-31  Michael Snyder  <msnyder@access-company.com>
 
+       * exec.c (xfer_memory): Remove redundant condition from 'if'.
+
        * symfile.c (reread_separate_symbols): Free xmalloced memory.
 
        * printcmd.c (build_address_symbolic): Remove dead code and dead 
index 4e68d1cf4435cd61321371299753be6a4016532d..9bf827baed9f297117b2ee452b6a0f4970e04f40 100644 (file)
@@ -479,7 +479,7 @@ xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write,
 
   for (p = target->to_sections; p < target->to_sections_end; p++)
     {
-      if (overlay_debugging && section && p->the_bfd_section &&
+      if (overlay_debugging && section && 
          strcmp (section->name, p->the_bfd_section->name) != 0)
        continue;               /* not the section we need */
       if (memaddr >= p->addr)