aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-09-22 23:03:30 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-09-22 23:03:30 +0000
commit69e2bf17962dfdfb1fec536aa7621fc5e04bc427 (patch)
treeec655b99931d9d1aae7686df423dc8f8f7ea19e7 /gdb/solib.c
parentc4e86dd4d087248e379b26bfdde8d6e3121a4bd9 (diff)
downloadgdb-69e2bf17962dfdfb1fec536aa7621fc5e04bc427.zip
gdb-69e2bf17962dfdfb1fec536aa7621fc5e04bc427.tar.gz
gdb-69e2bf17962dfdfb1fec536aa7621fc5e04bc427.tar.bz2
* solib.c (solib_bfd_open): Relax a bit the compatibility check.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index c7fd0fc..a2ad0c4 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -310,7 +310,7 @@ solib_bfd_open (char *pathname)
/* Check bfd arch. */
b = gdbarch_bfd_arch_info (target_gdbarch);
- if (b->compatible (b, bfd_get_arch_info (abfd)) != b)
+ if (!b->compatible (b, bfd_get_arch_info (abfd)))
warning (_("`%s': Shared library architecture %s is not compatible "
"with target architecture %s."), found_pathname,
bfd_get_arch_info (abfd)->printable_name, b->printable_name);