This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
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);
[...]
> 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