This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB does not returns



(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



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