* i386 gdbserver for windows: break problem
@ 2007-02-21 19:58 Khaled Jmal
2007-02-21 20:02 ` Lerele
0 siblings, 1 reply; 4+ messages in thread
From: Khaled Jmal @ 2007-02-21 19:58 UTC (permalink / raw)
To: gdb
Hi all,
I'm using gdbserver 6.6 and I compiled it for windows with mingw.
It looks like the break is not working. The gdbserver doesn't react to CTRL-C
Is this function implemented
I tried to patch the gdbserver so that it polls the status when the application is running.
With GenerateConsoleCtrlEvent I could stop the application but only if the application
shares the same console as the gdbserver.
Any help?
Thanks,
Khaled
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: i386 gdbserver for windows: break problem
2007-02-21 19:58 i386 gdbserver for windows: break problem Khaled Jmal
@ 2007-02-21 20:02 ` Lerele
2007-02-21 22:02 ` Michael Snyder
0 siblings, 1 reply; 4+ messages in thread
From: Lerele @ 2007-02-21 20:02 UTC (permalink / raw)
To: Khaled Jmal; +Cc: gdb
Khaled Jmal wrote:
>Hi all,
>
>I'm using gdbserver 6.6 and I compiled it for windows with mingw.
>It looks like the break is not working. The gdbserver doesn't react to CTRL-C
>Is this function implemented
>
>I tried to patch the gdbserver so that it polls the status when the application is running.
>With GenerateConsoleCtrlEvent I could stop the application but only if the application
>shares the same console as the gdbserver.
>
>Any help?
>
>
>Thanks,
>Khaled
>
>
>
>
The gdbserver for Win32 patch I submitted did not include that support.
I did work on that some months ago to let client gdb interrupt the
remotely debugged process, but never actually submitted the patch. It
did work somewhat, but the approach wasn't correct because the way I
handled interrupt support interfered too much with debugged process
execution, and it was somewhat buggy.
I know it's very annoying not to be able to interrupt remote process,
but I have not found time to implement that support correctly, sorry.
It's on my todo. I will do it eventually, if nobody else does first.
Leo.
>
>
>
>
>
>___________________________________________________________________________
>Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
>Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
>http://fr.answers.yahoo.com
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: i386 gdbserver for windows: break problem
2007-02-21 20:02 ` Lerele
@ 2007-02-21 22:02 ` Michael Snyder
2007-02-22 12:27 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2007-02-21 22:02 UTC (permalink / raw)
To: Lerele; +Cc: Khaled Jmal, gdb
On Wed, 2007-02-21 at 19:16 +0100, Lerele wrote:
> Khaled Jmal wrote:
>
> >Hi all,
> >
> >I'm using gdbserver 6.6 and I compiled it for windows with mingw.
> >It looks like the break is not working. The gdbserver doesn't react to CTRL-C
> >Is this function implemented
> >
> >I tried to patch the gdbserver so that it polls the status when the application is running.
> >With GenerateConsoleCtrlEvent I could stop the application but only if the application
> >shares the same console as the gdbserver.
> >
> >Any help?
> >
> >
> >Thanks,
> >Khaled
> >
> >
> >
> >
>
> The gdbserver for Win32 patch I submitted did not include that support.
>
> I did work on that some months ago to let client gdb interrupt the
> remotely debugged process, but never actually submitted the patch. It
> did work somewhat, but the approach wasn't correct because the way I
> handled interrupt support interfered too much with debugged process
> execution, and it was somewhat buggy.
> I know it's very annoying not to be able to interrupt remote process,
> but I have not found time to implement that support correctly, sorry.
> It's on my todo. I will do it eventually, if nobody else does first.
Control-c has always been problematic for gdb on windows.
Windows doesn't treat control-c at all like other os's do.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: i386 gdbserver for windows: break problem
2007-02-21 22:02 ` Michael Snyder
@ 2007-02-22 12:27 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2007-02-22 12:27 UTC (permalink / raw)
To: Michael Snyder; +Cc: lerele, khaledjmal, gdb
> From: Michael Snyder <Michael.Snyder@palmsource.com>
> Cc: Khaled Jmal <khaledjmal@yahoo.fr>, gdb@sourceware.org
> Date: Wed, 21 Feb 2007 12:02:31 -0800
>
> Control-c has always been problematic for gdb on windows.
> Windows doesn't treat control-c at all like other os's do.
Actually, Ctrl-C handling on Windows is very similar to Posix. The
only major problem that I'm aware of is that the Ctrl-C handler runs
in a separate thread, so a single-threaded program suddenly becomes
multi-threaded, and in particular one can have race condition between
the main thread and the signal thread.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-02-22 4:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 19:58 i386 gdbserver for windows: break problem Khaled Jmal
2007-02-21 20:02 ` Lerele
2007-02-21 22:02 ` Michael Snyder
2007-02-22 12:27 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox