This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: arm-elf-gdb Cannot access memory at address ...[IXDP425]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]