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]

Is this the compiler or debugger issue?


Hello, everyone,

I experienced some problems to run the mips64vr4300-elf toolchain on eCos,
hope anyone can kindly help me. I used binutils2.0, egcs-2000-5-30 and
insight 5.0. I successfully download the code, but even I just try to set
"break" at main, it complains,
"Cannot access memory at address 0x0". I doubt if I have some setting
problems.

The sample session to run a hello.exe in ecos example directry is shown in
below. The strange thing is, even I try to run the hello.exe in simulator
target, some error message shows "mips-core: 1 byte write to unmapped
address 0xc1000007 at 0x0". Actually I use mips64vr4300-elf-run to run the
test example hello.exe, the log is also posted below. Thanks for anyone who
can show me some light to solve this. Thanks a lot!

Best Regards,
-Ling

Sample session to run the hello.c on NEC board.
----------------------------------------------------------------------------
------
[sul@RACCOON examples/$]mips64vr4300-elf-gdb -nw hello.exe
GNU gdb 5.0
Copyright 2000 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-cygwin --target=mips64vr4300-elf"...
(gdb) set remote debug 0
Undefined set remote command: "debug 0".  Try "help set remote".
(gdb) set debug remote 0
(gdb) set remotebaud 38400
(gdb) target remote 38400
38400: No such file or directory.
(gdb) target remote com1
Remote debugging using com1
0x80003a50 in ?? ()
(gdb) load
Loading section .rom_vectors, size 0xb4 lma 0x80100000
Loading section .text, size 0xaf74 lma 0x801000b4
Loading section .ctors, size 0x2c lma 0x8010b028
Loading section .dtors, size 0x1c lma 0x8010b054
Loading section .rodata, size 0x4ec lma 0x8010b070
Loading section .data, size 0x94d lma 0x8010b560
Start address 0x801000a4 , load size 48809
Transfer rate: 27890 bits/sec, 493 bytes/write.
(gdb) break main
Cannot access memory at address 0x0
(gdb) break main
Cannot access memory at address 0x0
Working directory /shared/ecos/examples.
(gdb) quit
The program is running.  Exit anyway? (y or n) y


Sample session to run hello.exe in simulator.
================================================
[sul@RACCOON examples/$]mips64vr4300-elf-run hello.exe
mips-core: 1 byte write to unmapped address 0xc1000007 at 0x0
program stopped with signal 10.
[sul@RACCOON examples/$]mips64vr4300-elf-run hello.exe
mips-core: 1 byte write to unmapped address 0xc1000007 at 0x0
program stopped with signal 10.
[sul@RACCOON examples/$]mips64vr4300-elf-run hello.exe
mips-core: 1 byte write to unmapped address 0xc1000007 at 0x0
program stopped with signal 10.
[sul@RACCOON examples/$]


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