public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* GDB does not returns
@ 2003-08-01  4:32 Jose Paul
  2003-08-08  2:27 ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Jose Paul @ 2003-08-01  4:32 UTC (permalink / raw)
  To: gdb


Hi All,

Hi Alain,

Here is the program I am using.

/*----------------------------------------------------
 * eCos 'Hello world' example
 * --------------------------------------------------*/

#include <stdio.h>
//#include "library_example.h"

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


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


I am using GDB  mipsel-elf-gdb.exe build GNU gdb 20030516.
My problem is that when I run the above program in command line it prints
Hello world
and is not returning to GDB.

One of the ecos GUY says that if we put a break point at exit it is possible
to exit the program.
What command we have use to put a break
point at exit or what settings I have to make to get back to gdb prompt?.

Please let me know.
Jose



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-08 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-01  4:32 GDB does not returns Jose Paul
2003-08-08  2:27 ` Andrew Cagney
2003-08-08  4:33   ` Jose Paul
2003-08-08 13:37     ` Andrew Cagney

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).