2002-02-07 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 7 Feb 2002 23:08:55 +0000 (23:08 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 7 Feb 2002 23:08:55 +0000 (23:08 +0000)
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
Logic bug, remove misplaced else.

gdb/ChangeLog
gdb/solib-legacy.c

index 9083fbf55ca4438342aee8aef2c6d5e3db52f3e8..26d72d4386495bf42714355918e37da6ed0a1a93 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-07  Michael Snyder  <msnyder@redhat.com>
+
+       * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): 
+       Logic bug, remove misplaced else.
+
 2002-02-07  Klee Dienes  <klee@apple.com>
 
        * fork-inferior.c (fork_inferior): Add '!' to the list of
index a7a4f7e043c571879544dccfceaabcd1d47d8c7f..ca730c4ad9b33df732b433846427d11823af3a05 100644 (file)
@@ -135,11 +135,10 @@ legacy_svr4_fetch_link_map_offsets (void)
       if (bfd_get_arch_size (exec_bfd) == 32)
        return lmp32;
     }
-  else if (TARGET_PTR_BIT == 32)
+  if (TARGET_PTR_BIT == 32)
     return lmp32;
-  else
 #endif
-    return lmp;
+  return lmp;
 }
 
 #endif /* HAVE_LINK_H */