public inbox for ecos-maintainers@sourceware.org
 help / color / mirror / Atom feed
* Program doesn't returns
@ 2003-07-25  4:12 Jose Paul
  0 siblings, 0 replies; only message in thread
From: Jose Paul @ 2003-07-25  4:12 UTC (permalink / raw)
  To: ecos-maintainers

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


























^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-25  4:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-25  4:12 Program doesn't returns Jose Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).