From 78b29b405f3dc1907cb7fbb81c16563e3b1754ba Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 7 Feb 2002 23:08:55 +0000 Subject: [PATCH] 2002-02-07 Michael Snyder * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Logic bug, remove misplaced else. --- gdb/ChangeLog | 5 +++++ gdb/solib-legacy.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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 */ -- 2.30.2