[ECOS] Helloworld program doesn't returns help required

Jose Paul jose@exorindia.com
Fri Jul 25 06:34:00 GMT 2003


Hi All,

When I tried a helloworld program in ecos using  mipsel-vr4100-elf-gdb.exe
program is not returning to gdb> after it reaches the end of the program.

Here is the program I have tried.
/*----------------------------------------------------
 * eCos 'Hello world' example
 * --------------------------------------------------*/

#include <stdio.h>


int main(int argc, char* argv[])
{
    int i;


    for (i=0; i<10; i++)
    {
      printf("Hello world!\n\r");

    }
    return 0;
}


This program prints "Hello world" but it does not return to gdb>.

(gdb) target remote 192.168.0.100:9000
Remote debugging using 192.168.0.100:9000
0xffffffff80012e7c in ?? ()
(gdb) load
D:\DeviceStudio\ecos\work\examples\src\helloworld\debug\helloworld.e
xe
Loading section .rom_vectors, size 0x828 lma 0x80080000
Loading section .text, size 0x8121c lma 0x80080828
Loading section .rodata, size 0x9e9c lma 0x80101a48
Loading section .data, size 0x1830 lma 0x8010b8e8
Loading section .ctors, size 0x5c lma 0x8010d118
Loading section .dtors, size 0x3c lma 0x8010d174
Loading section .devtab, size 0x2f0 lma 0x8010d1b0
Start address 0x80080818, load size 578712
Transfer rate: 420881 bits/sec, 509 bytes/write.
(gdb) c
Continuing.
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!

After this I am not able to send any commands since it does not displays
prompt (gdb) .

Please help.Is it the problem with ecos?.

Thanks in advance,
Jose




























-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list