help ... [CDT] some problem at starter.exe [message #180966] |
Thu, 14 December 2006 05:54  |
Eclipse User |
|
|
|
HI,
I use the CDT of eclipse for Remote Debug my ap that is multi-thread.
but when I toggle a breakpoint to Eclipse after my ap be launched, I got a
problem that eclipse didn't send CTRL-C to GdbServer.
I trace the source code of CDT and I find some steps that eclipse execute
gdb.
these steps list below,
a. Eclipse recive a signal for toggle breakpoint.
b. raise a event to starter.exe by spawner.dll
c. starter.exe receive a event and execute
"GenerateConsoleCtrlEvent(CTRL_C_EVENT,0)" to send CTRL-C to Gdb.exe
This Gdb.exe didn't receive "CTRL-C" .
So that Eclipse can't toggle breakpoint to GdbServer.
my platform is
1. cygwin 1.5.22
2. gdb (ver 6.4 and 6.5 on cygwin)
3. GdbServer (Ver 6.4 and 6.5 on linux) be executed on i686-pc-linux
4. Eclipse (Ver3.2)
5. CDT (Ver 3.1.1)
6. WinXp (professional)
7. Mp Ap is multi-thread
Could somebody help to solve this situation ?
And if someone have the same platform, will it occure this problem ?
|
|
|
Re: help ... [CDT] some problem at starter.exe [message #180991 is a reply to message #180966] |
Fri, 15 December 2006 02:40  |
Eclipse User |
|
|
|
Veinson,
I have been working with gdbserver implementations which can only "listen"
to their gdb master when the process is suspended, i.e. you must set some
breakpoints before you run the application and you only get the chance to
change the breakpoints when the app is stopped at one of them. The question
here is, whether your gdbserver has an extra listener thread which keeps
it's ears open for commands from gdb.
I'm not sure about what your gdbserver implementation offers though.
Cheers,
Norbert
|
|
|
Powered by
FUDForum. Page generated in 0.05626 seconds