This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Check solib bfd arch
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: pedro at codesourcery dot com (Pedro Alves)
- Cc: gdb-patches at sourceware dot org, drow at false dot org (Daniel Jacobowitz), mark dot kettenis at xs4all dot nl (Mark Kettenis), brobecker at adacore dot com, teawater at gmail dot com, msnyder at vmware dot com
- Date: Fri, 18 Sep 2009 18:14:32 +0200 (CEST)
- Subject: Re: [RFA] Check solib bfd arch
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