This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Check solib bfd arch


>      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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]