aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-legacy.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9083fbf..26d72d4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/solib-legacy.c b/gdb/solib-legacy.c
index a7a4f7e..ca730c4 100644
--- a/gdb/solib-legacy.c
+++ b/gdb/solib-legacy.c
@@ -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 */