Author Topic: How to interrupt a running program within gdb  (Read 7191 times)

Offline kai7

  • Multiple posting newcomer
  • *
  • Posts: 10
How to interrupt a running program within gdb
« 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


Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: How to interrupt a running program within gdb
« Reply #1 on: March 08, 2007, 03:08:52 pm »
Thanks for this, will have a look.
Be patient!
This bug will be fixed soon...

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: How to interrupt a running program within gdb
« Reply #2 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: How to interrupt a running program within gdb
« Reply #3 on: March 09, 2007, 12:33:56 am »
Rev.3678 contains this workaround, thanks for the tip kai7 :).
Be patient!
This bug will be fixed soon...

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: How to interrupt a running program within gdb
« Reply #4 on: March 09, 2007, 01:00:13 am »
Rev.3678 contains this workaround, thanks for the tip kai7 :).

Excellent !

Offline kai7

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: How to interrupt a running program within gdb
« Reply #5 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. ;-)