This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Check solib bfd arch
On Friday 18 September 2009 17:41:43, Pedro Alves wrote:
> I think that's the same in practice as Joel's original
> patch then, since `compatible' either returns either
> NULL, a or b. ?This still catches the
> obviously-incompatible cases, so may be worth keeping,
> while anything smarter is probably not worth the effort
> then.
>
Grrrr...
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);
--
Pedro Alves