SPARC Simulator + GDB + CDT + Eclipse [message #159475] |
Wed, 30 November 2005 12:29  |
Eclipse User |
|
|
|
Originally posted by: fabricio.dea.inpe.br
Hi all,
After a lot of help from Norbert and Mikhail I could put GDB to work with
my development board, using the Zylin plugin
(http://www.zylin.com/embeddedcdt.html).
However, I have to do the same with the SPARC Instruction Simulator (SIS),
as we have just one board and some developers (it's an ERC32 processor, a
very expensive one) to work with it.
When starting a debug session on the real processor everything works fine.
But when trying to do the same with SIS, there's no answer to the last GDB
command, "run".
I can debug the simulator directly from the command line, and even using
the DDD graphical interface to GDB. But not with Eclipse / CDT.
I ran gdb from Eclipse and from the command line (with "interpreter=mi"),
and there's some differences between the sessions.
(A session with Eclipse)
[...]
[1.132.204.637.358] (gdb)
[1.132.204.641.145] 7 tar sim
[1.132.204.641.162] &"tar sim\n"
[1.132.204.641.165] ~"Connected to the simulator.\n"
[1.132.204.641.190] 7^done
[1.132.204.641.193] 8 load
[1.132.204.641.194] (gdb) [1.132.204.641.227] &"load\n"
[1.132.204.641.249] 8^done
[1.132.204.641.252] 9 break Init
[1.132.204.641.253] (gdb) [1.132.204.641.280] &"break Init\n"
[1.132.204.641.318] 9^done
[1.132.204.641.325] 10 run
[1.132.204.641.328] (gdb) [1.132.204.641.344] &"run\n"
(and there's no other message)
(A command-line session)
(gdb)
tar sim
&"tar sim\n"
~"Connected to the simulator.\n"
^done
(gdb)
load
&"load\n"
^done
(gdb)
break Init
&"break Init\n"
^done
(gdb)
run
&"run\n"
^done,reason="breakpoint-hit",bkptno="1",thread-id="0",
frame={addr="0x02001210",func="Init",args=[{name="ignored ",value="0"}],
file="hello.c",line="13"}
(gdb)
As you can see, from the command line we know that the breakpoint was hit,
but not from Eclipse. What can be happening?
Thanks in advance,
Fabrício.
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27044 seconds