From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29118 invoked by alias); 20 May 2008 15:27:10 -0000 Received: (qmail 29066 invoked by uid 22791); 20 May 2008 15:27:07 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 May 2008 15:26:47 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 75EF2983FE; Tue, 20 May 2008 15:26:45 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 5C10D98011; Tue, 20 May 2008 15:26:45 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JyTjg-0007we-1o; Tue, 20 May 2008 11:26:44 -0400 Date: Tue, 20 May 2008 17:53:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: Markus Deuling , GDB Patches Subject: Re: [patch]: Remove current_gdbarch from target.c Message-ID: <20080520152644.GA30512@caradoc.them.org> Mail-Followup-To: Ulrich Weigand , Markus Deuling , GDB Patches References: <483143AE.8060704@de.ibm.com> <200805201516.m4KFGOwH001309@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200805201516.m4KFGOwH001309@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00597.txt.bz2 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