GDB does not returns
Andrew Cagney
ac131313@redhat.com
Fri Aug 8 13:37:00 GMT 2003
> (gdb) break _exit
> Breakpoint 1 at 0x8010f040: file /ecos-d/DeviceStudio/ecos/src/ecos-s
> es/language/c/libc/startup/current/src/_exit.cxx, line 83.
> (gdb) continue
> Continuing.
> Hello world!
> Hello world!
> Hello world!
> Hello world!
> Hello world!
> Hello world!
> Hello world!
> Hello world!
> Hello world!
> Hello world!
> [New Thread 2]
> [Switching to Thread 2]
>
> Breakpoint 1, _exit (status=0) at /ecos-d/DeviceStudio/ecos/src/ecos-
> ges/language/c/libc/startup/current/src/_exit.cxx:83
> 83 CYG_ASSERT( status == 0, "Program _exiting with non-zero
> s");
> Current language: auto; currently c++
Right. Your program's been stopped just mm from its real exit.
> (gdb) c
> Continuing.
That won't go anywhere. The remote end will need to be modified so that
_exit causes the target to report back a program-exited packet (Wnn, see
Remote Protocol in the doco). It appears at present _exit is simply
implemented as an infinite loop..
Andrew
More information about the Gdb
mailing list