Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » help ... [CDT] some problem at starter.exe
help ... [CDT] some problem at starter.exe [message #180966] Thu, 14 December 2006 05:54 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Parsing binary ELF files
Next Topic:Howto avoid having all files from directory in project view?
Goto Forum:
  


Current Time: Sun Jul 20 14:12:02 EDT 2025

Powered by FUDForum. Page generated in 0.05626 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top