Re: [RFA] Check solib bfd arch

Joel Brobecker
2009-09-18T20:43:28Z

> > 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);
[...]
> I will update my patch accordingly... This probably warrants a function,
> probably in gdbarch-utils.

Actually, I don't think that this will be needed. Regardless of
the order we do things, it's always going to return non-null if
both architectures are mips, which is the best we can check in
that case.

--
Joel