This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: arm-elf-gdb Cannot access memory at address ...[IXDP425]
- From: Mark Salter <msalter at redhat dot com>
- To: Antonello Lombardinilo <antonello at kasko dot it>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 24 Sep 2004 10:46:02 -0400
- Subject: Re: [ECOS] arm-elf-gdb Cannot access memory at address ...[IXDP425]
- Organization: Red Hat Inc.
- References: <009801c4a23e$d6e85940$0601a8c0@antonb>
On Fri, 2004-09-24 at 10:00, Antonello Lombardinilo wrote:
> I have IXDP425 board (B0 step) with lastet redboot:
> ----------------------------------------------------------------------------
> [root@KaskoPC002 tests]# arm-elf-gdb
> GNU gdb 5.3
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
> (gdb) target remote 192.168.1.55:9000
> Remote debugging using 192.168.1.55:9000
> Cannot access memory at address 0xbcfefc0f <----- ?????
> 0x28550150 in ?? ()
This is an endianess issue. The arm-elf-gdb is assuming LE, but board
is BE. You need to tell gdb that its a BE target before connecting to
the board. The easiest way to do this is to include the program name
on the command line. Something like:
# arm-elf-gdb thread0
--Mark
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss