[Cppunit-devel] Problems debugging programs with CppUnit and gdb
Brought to you by:
blep
From: Lavoie P. <la...@yu...> - 2002-05-09 15:12:38
|
Hi, I'm wondering if anyone else has the same problem. I'm stepping through a cppunit program (based on the simple example) and when I reach a CPPUNIT_ASSERT_EQUAL statement which fails. The program exits. Now so far so good as it's the desired behavior, however I did something like this template <class T> class TestMatrix : public TestCase { ... testBob(); .... }; class TestMatrixInt : public TestMatrix<int> { // define the tests here with the tester macros }; class TestMatrixFloat : public TestMatrix<float> { // define the tests here with the tester macros }; The problem is that testBob fails inside the TestMatrixInt class and the break point I've set inside the testBob function is never d for the TestMatrixFloat function. Perhaps it's more to do with gdb and how to set breakpoints inside template codes. Anyway, any help is appreciated. Thanks Phil |