This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Issue with PSIM
- From: "Smith, Keith" <Keith dot Smith at PERKINELMER dot COM>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 22 Apr 2011 14:27:12 -0400
- Subject: [ECOS] Issue with PSIM
I am attempting to use the PowerPC simulator with an eCos configuration.
I have successfully (I think) built a version of gdb to support the psim
target.
I then created a PSIM.ecc file and built the library and tests.
When I try to run a test file in gdb, I get an error '
core_find_mapping() - access to unmaped address, attach a default map to
handle'
$ powerpc-unknown-eabisim-gdb
~/PPCSim/PPCSim_install/tests/services/memalloc/common/v3_0/tests/heapte
st
. . .
(gdb) target sim -t gdb
Connected to the simulator.
(gdb) load
sim_calls.c:104:
sim_load(prog=/home/SmithKM/PPCSim/PPCSim_install/tests/service
s/memalloc/common/v3_0/tests/heaptest, from_tty=1) called
sim_calls.c:108: sim_load() - first time, create the simulator
(gdb) break main
Breakpoint 1 at 0x96e0: file
/opt/ecos/ecos-3.0/packages/language/c/libc/startup
/v3_0/src/main.cxx, line 91.
(gdb) run
Starting program:
/home/SmithKM/PPCSim/PPCSim_install/tests/services/memalloc/co
mmon/v3_0/tests/heaptest
sim_calls.c:173: sim_create_inferior(start_address=0x241c900, ...)
gdb-sim.c:1280: sim_fetch_register(regno=176(pc), buf=0x241c5bc)
sim_calls.c:141: sim_read(mem=0x100, buf=0x241c638, length=4) = 4
gdb-sim.c:1280: sim_fetch_register(regno=1(r1), buf=0x241c53c)
gdb-sim.c:1280: sim_fetch_register(regno=190(lr), buf=0x241c53c)
sim_calls.c:141: sim_read(mem=0x96e0, buf=0x26aafcc, length=4) = 4
sim_calls.c:153: sim_write(mem=0x96e0, buf=0x269b5c8, length=4) = 4
sim_calls.c:141: sim_read(mem=0x100, buf=0x241c6a8, length=4) = 4
sim_calls.c:238: sim_resume(step=0, siggnal=0)
core_find_mapping() - access to unmaped address, attach a default map to
handle
this - addr=0xf000101a nr_bytes=0x1 processor=0x25c7338 cia=0x5084
I hope I have described my problem in enough detail.
Keith Smith
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss