From: Michael Snyder Date: Thu, 7 Feb 2002 23:08:55 +0000 (+0000) Subject: 2002-02-07 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78b29b405f3dc1907cb7fbb81c16563e3b1754ba;p=binutils-gdb.git 2002-02-07 Michael Snyder * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Logic bug, remove misplaced else. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9083fbf55ca..26d72d43864 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-02-07 Michael Snyder + + * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): + Logic bug, remove misplaced else. + 2002-02-07 Klee Dienes * fork-inferior.c (fork_inferior): Add '!' to the list of diff --git a/gdb/solib-legacy.c b/gdb/solib-legacy.c index a7a4f7e043c..ca730c4ad9b 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 */