aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/solib-svr4.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0e24d3a..75fee36 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
+
2007-07-10 Nick Roberts <nickrob@snap.net.nz>
* breakpoint.c: Include "top.h".
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 3f6be94..1ef2d1e 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -184,7 +184,7 @@ LM_ADDR_CHECK (struct so_list *so, bfd *abfd)
don't adjust the base offset in the latter case, although
odds are that, if things really changed, debugging won't
quite work. */
- if ((l_addr & align) == 0 && ((dynaddr - l_dynaddr) & align) == 0)
+ if ((l_addr & align) == ((l_dynaddr - dynaddr) & align))
{
l_addr = l_dynaddr - dynaddr;