aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-07-12 20:15:24 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-07-12 20:15:24 +0000
commitf1e55806303788564a5a67395b4690b522c62b41 (patch)
tree9ce187a3b9a1e1725ac58302e229bbd857a72e55 /gdb
parent0d37add96298857bfc56467b9cb81e1d38c88b41 (diff)
downloadgdb-f1e55806303788564a5a67395b4690b522c62b41.zip
gdb-f1e55806303788564a5a67395b4690b522c62b41.tar.gz
gdb-f1e55806303788564a5a67395b4690b522c62b41.tar.bz2
* solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
Diffstat (limited to 'gdb')
-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;