diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-09-22 23:03:30 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-09-22 23:03:30 +0000 |
commit | 69e2bf17962dfdfb1fec536aa7621fc5e04bc427 (patch) | |
tree | ec655b99931d9d1aae7686df423dc8f8f7ea19e7 | |
parent | c4e86dd4d087248e379b26bfdde8d6e3121a4bd9 (diff) | |
download | gdb-69e2bf17962dfdfb1fec536aa7621fc5e04bc427.zip gdb-69e2bf17962dfdfb1fec536aa7621fc5e04bc427.tar.gz gdb-69e2bf17962dfdfb1fec536aa7621fc5e04bc427.tar.bz2 |
* solib.c (solib_bfd_open): Relax a bit the compatibility check.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/solib.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb94bd2..8e7c726 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-09-22 Joel Brobecker <brobecker@adacore.com> + + * solib.c (solib_bfd_open): Relax a bit the compatibility check. + 2009-09-22 Daniel Jacobowitz <dan@codesourcery.com> * source.c (forget_cached_source_info): Clear last_source_visited. 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); |