Re: [RFA] Check solib bfd arch

Ulrich Weigand
2009-09-18T16:14:50Z

Pedro Alves wrote:

> Could we compare the solib's target arch with
> tdesc_architecture(target_read_description()) directly --- but only
> if available ---, instead of comparing it with target_gdbarch?

Hmm, this would ignore the work done by choose_architecture_for_target.

Maybe we should compare against target_gdbarch, but only if a target
description is present? Just wrap the whole test as-is in a
if (target_read_description ())
...

In any case, at this point the best option for 7.0 might indeed be
to just disable the test.

Bye,
Ulrich

--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com