From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26340 invoked by alias); 20 Jan 2002 19:18:53 -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 26308 invoked from network); 20 Jan 2002 19:18:53 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 20 Jan 2002 19:18:53 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id DF7293F0A; Sun, 20 Jan 2002 14:18:52 -0500 (EST) Message-ID: <3C4B181C.4070801@cygnus.com> Date: Sun, 20 Jan 2002 11:18: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: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Eliminate TARGET_BYTE_ORDER_SELECTABLE References: <3C490B0C.6090601@cygnus.com> <20020119094718.A1404@nevyn.them.org> <3C49A566.1060508@cygnus.com> <20020119120032.A19415@nevyn.them.org> <3C4B0D79.4070005@cygnus.com> <20020120133632.A22738@nevyn.them.org> <3C4B13D1.90007@cygnus.com> <20020120140537.A24675@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00584.txt.bz2 > Nope! I'm about to delete TARGET_BYTE_ORDER_DEFAULT. >> >> There is this really nasty bit of code in arch-utils.c that roots around >> the internals of BFD and uses that to determine the initial architecture >> and byte-order. Doing this ensures that GDB's behavour is better >> aligned with that of BINUTILS. >> See arch-utils.c:initialize_current_architecture(). >> >> If GDB initializes its self to the wrong byte-order then there is likely >> a bug in BFD. > > > Oh, I see. I -think- this will work correctly for my targets; I'll > check after you do it. BTW, the MIPS has been using this since: Wed Jun 7 18:27:51 2000 Andrew Cagney * configure.in (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Use config.bfd to determine the default architecture / target. * acconfig (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Add. * configure, config.in: Regenerate. * arch-utils.c (set_endian): Better separate multi-arch and non- multi-arch cases. (set_endian_from_file): Call internal_error when multi-arch. (initialize_current_architecture): Rewrite logic selecting a byte order. Use DEFAULT_BFD_ARCH DEFAULT_BFD_VEC. (version.h): Include. * config/mips/tm-mips.h, config/mips/tm-bigmips64.h, config/mips/tm-bigmips.h: Delete definition of TARGET_BYTE_ORDER_DEFAULT. Andrew