Re: [Dev-C++] Multi-threaded debugging in Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-03-22 02:43:32
|
I haven't tried it yet with Insight. I did do an application back about a year ago that was a plug-in for GIMP (GIMP and plug-in where seperate threads). It required a do-nothing loop with a variable that you could clear to exit the loop with once you attached it to GDB. It was actually a pain in the butt, but GDB worked well once I figured out how to use it correctly. This was the command line version of GDB instead of Insight, and was Dev-C++ 4.9.9.0 if I recall correctly.
The GDB entry is as follows:
#ifdef DEBUG
do {
shapefs.d_c();
} while (d_l == TRUE); // Make this variable FALSE to continue with program flow.
#endif
void GIMP_SFS::d_c (void)
{ /* If DEBUG is defined, will loop in this function forever until attached by
the debugger and the value d_l set to FALSE.
*/
d_v = ~d_v; // Just something to do.
}
Behcet Emre Tezel <emr...@gm...> wrote:
How are people's experience so far debugging multi threaded C++
applications in Dev-C++?
-Emre
<snip>
Alfred P. Reaud
|