Code::Blocks Forums

User forums => Help => Topic started by: kai7 on March 08, 2007, 10:22:18 am

Title: How to interrupt a running program within gdb
Post by: kai7 on March 08, 2007, 10:22:18 am
Hi,

I am using Code::Blocks under Windows with MinGW. I assume that everyone who is doing the same has this annoying problem: You can't interrupt a running application in a debug session if you have no breakpoint set. Now I found a workaround for this problem:

http://cygwin.com/ml/cygwin/2006-06/msg00321.html

There is the source code included for a small program that could interrupt a running debuged application. It's simple and it's working very well. Wouldn't it be a good idea to integrate it in C::B?

-Kai

Title: Re: How to interrupt a running program within gdb
Post by: mandrav on March 08, 2007, 03:08:52 pm
Thanks for this, will have a look.
Title: Re: How to interrupt a running program within gdb
Post by: Pecan on March 08, 2007, 03:26:26 pm
Hi,

I am using Code::Blocks under Windows with MinGW. I assume that everyone who is doing the same has this annoying problem: You can't interrupt a running application in a debug session if you have no breakpoint set. Now I found a workaround for this problem:

http://cygwin.com/ml/cygwin/2006-06/msg00321.html

There is the source code included for a small program that could interrupt a running debuged application. It's simple and it's working very well. Wouldn't it be a good idea to integrate it in C::B?

-Kai

Interesting... though it would best be included in the win version of gdb.

I'll give it a test run.
Title: Re: How to interrupt a running program within gdb
Post by: mandrav on March 09, 2007, 12:33:56 am
Rev.3678 contains this workaround, thanks for the tip kai7 :).
Title: Re: How to interrupt a running program within gdb
Post by: Pecan on March 09, 2007, 01:00:13 am
Rev.3678 contains this workaround, thanks for the tip kai7 :).

Excellent !
Title: Re: How to interrupt a running program within gdb
Post by: kai7 on March 09, 2007, 12:46:34 pm
Rev.3678 contains this workaround, thanks for the tip kai7 :).

Great. Thank you for integrating it so fast. ;-)