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]

run hello throug gdb (on Assabet)


Hi,

I found a similar problem in the archive (Wed, 04 Jul
2001, gdb debugging) but "continue" could not solve
the problem.

I try to run hello on Assabet.  First, I load
gdb_module.bin to Assabet.  Then, I compiled hello.

> file hello
hello: ELF 32-bit LSB executable, Advanced RISC
Machines ARM, version 1, statically linked, not
stripped

I guess this is good.

Finally, I run gdb:
-------------------------------------
> arm-elf-gdb -nw hello
(gdb's greeting)
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
hal_hardware_init ()
    at
/home/luyung/ecos/ecos/packages/hal/arm/sa11x0/var/current/src/sa11x0_misc.c:73
73          *SA11X0_ICMR = 0;
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint
trap.
hal_hardware_init ()
    at
/home/luyung/ecos/ecos/packages/hal/arm/sa11x0/var/current/src/sa11x0_misc.c:73
73          *SA11X0_ICMR = 0;
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
-------------------------------------
Should I see "Hello, eCos world!"?  Does anybody know
what was wrong?  Thank you.

=====
Robert Lee
Software Engineer

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


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