This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Doco? (was: "Re: Problems running GDB-5.1.")
- From: Joel Brobecker <brobecker at gnat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 6 Nov 2002 12:23:05 -0800
- Subject: Doco? (was: "Re: Problems running GDB-5.1.")
- References: <72222DC86846D411ABD300A0C9EB08A1030613B4@csoc-mail-box.csoconline.com> <20021106201425.GX5164@gnat.com>
[Message from gdb@sources...]
On Wed, Nov 06, 2002 at 12:14:25PM -0800, Joel Brobecker wrote:
> > 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.
Maybe I should have documented that somewhere. Or added a configury
test? What is the usual procedure in cases like that?
--
Joel