From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19751 invoked by alias); 29 Jan 2002 03:35:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19683 invoked from network); 29 Jan 2002 03:35:50 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 29 Jan 2002 03:35:50 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 9D80E3D61 for ; Mon, 28 Jan 2002 22:35:43 -0500 (EST) Message-ID: <3C56188F.8090005@cygnus.com> Date: Mon, 28 Jan 2002 19:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Eliminate TARGET_BYTE_ORDER_DEFAULT References: <3C4B2817.6030205@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00751.txt.bz2 I've checked in the below. ARM developers should keep an eye out for this. At Daniel J's prompting I did do an armeb-elf build and found that it did at least appear to come up with the correct byte order. enjoy, Andrew > Per discussion on TARGET_BYTE_ORDER_SELECTABLE. This patch removes > TARGET_BYTE_ORDER_DEFAULT. > > I suspect the patch also fixes a bug in the non-multi-arch code (Daniel > J's prodding made me revisit it). Unlike the multi-arch case, > the non-multi-arch code wasn't updating target_byte_order with the > byte-order determined from BFD. > > I'll leave this one for a few days. > > Andrew > > PS, the arm still comes up little endian: > > ac131313@nettle$ ./gdb/gdb > GNU gdb 2002-01-20-cvs > (gdb) show endian > The target endianness is set automatically (currently little endian) > (gdb) > > > 2002-01-20 Andrew Cagney > > * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro. > (target_byte_order): Initialize to BFD_ENDIAN_BIG. > (initialize_current_architecture): Update target_byte_order using > information from BFD. > * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT): > * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT): > * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete. > >