Re: [patch]: Remove current_gdbarch from target.c

Daniel Jacobowitz
2008-05-20T15:27:10Z

On Tue, May 20, 2008 at 05:16:24PM +0200, Ulrich Weigand wrote:
> Markus Deuling wrote:
>
>
> > * target.c (target_translate_tls_address): Replace current_gdbarch by
> > objfile arch.
>
> This is OK.

Is it really? What are the guarantees for the objfile architecture?

If an object is not sniffed as belonging to a particular os/abi, I
believe we won't get its tls address routine now, even when connected
to a target reporting the appropriate OS/ABI some other way or using
set arch.

This is not a big deal for Linux, since every linked object is
generally sniffable. But I've been working with two other OS's
recently where our dependence on sniffers is a problem; neither
Symbian OS nor DICOS has clear markings.

--
Daniel Jacobowitz
CodeSourcery