[RFA] Check solib bfd arch

Joel Brobecker brobecker@adacore.com
Fri Sep 18 20:43: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);
[...]
> 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



More information about the Gdb-patches mailing list