From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15330 invoked by alias); 6 Nov 2002 20:35:06 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15323 invoked from network); 6 Nov 2002 20:35:05 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 6 Nov 2002 20:35:05 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id C12013E60; Wed, 6 Nov 2002 15:35:06 -0500 (EST) Message-ID: <3DC97CFA.8010807@redhat.com> Date: Wed, 06 Nov 2002 12:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Brobecker Cc: "Trant, Bert" , "'gdb@sources.redhat.com'" Subject: Re: Problems running GDB-5.1. References: <72222DC86846D411ABD300A0C9EB08A1030613B4@csoc-mail-box.csoconline.com> <20021106201425.GX5164@gnat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-11/txt/msg00063.txt.bz2 >> I recieve the following warning message: >> >> warning: big endian file does not match little endian target. > > > Did you compile GDB with GCC or the Tru64 C compiler? If you compiled > with GCC, you may have run into the same problem as I did. I fixed it > by compiling with -D__digital__: > > make CC=gcc CFLAGS="-O2 -D__digital__" > > What happens is that GCC picks up the wrong definitions for the > structure of the core file if this macro is not defined. So the layout > of the data does not match and we end up reading some garbage. Hence > the bizarre messages. Suggest a bug report and addition to the [5.3] gdb/PROBLEMS file. The fix involves changing the configury. Andrew