[RFA] Check solib bfd arch
Joel Brobecker
brobecker@adacore.com
Fri Sep 18 17:17:00 GMT 2009
> Some targets (e.g. MIPS as of 2006-12-04) don't fully
> implement this, instead always returning NULL or the first
> argument. We detect that case by checking both directions. */
>
> compat1 = selected->compatible (selected, from_target);
> compat2 = from_target->compatible (from_target, selected);
Re-confirmed:
static const bfd_arch_info_type *
mips_compatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b)
{
if (a->arch != b->arch)
return NULL;
/* Machine compatibility is checked in
_bfd_mips_elf_merge_private_bfd_data. */
return a;
}
I will update my patch accordingly... This probably warrants a function,
probably in gdbarch-utils.
--
Joel
More information about the Gdb-patches
mailing list