aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-02-07 23:08:55 +0000
committerMichael Snyder <msnyder@vmware.com>2002-02-07 23:08:55 +0000
commit78b29b405f3dc1907cb7fbb81c16563e3b1754ba (patch)
tree18cedcd019aa329689ebabaadd622b07508c569d
parentc7ef9c3fe55a9f8e5aaa1499b485cbd44fc5045a (diff)
downloadgdb-78b29b405f3dc1907cb7fbb81c16563e3b1754ba.zip
gdb-78b29b405f3dc1907cb7fbb81c16563e3b1754ba.tar.gz
gdb-78b29b405f3dc1907cb7fbb81c16563e3b1754ba.tar.bz2
2002-02-07 Michael Snyder <msnyder@redhat.com>
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Logic bug, remove misplaced else.
-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 */