From: Parinya T. <thi...@ya...> - 2003-06-13 12:40:46
|
Hi, I found that I can't step into ctor or dtor. This is a small test case : test.cpp ----------------- >8 ----------------- #include <iostream> class Test{ public: Test(); ~Test(); }; Test::Test(){ std::cout << "Test ctor!" << std::endl; // try to set break point at this line (line 10) } Test::~Test(){ std::cout << "Test dtor!" << std::endl; // try to set break point at this line (line 14) } int main(void){ Test a; return 0; } ----------------->8------------------ What I have done is: 1. g++ -g -o test test.cpp [skip message] 2. gdb test.exe [skip message] (gdb) break test.cpp:10 Breakpoint 1 at 0x4012c2: file test.cpp, line 10. (gdb) r Starting program: C:\Temp\test/test.exe Program exited normally. (gdb) MinGW gcc 3.2.3, gdb 5.2.1, binutils-2.13.90-20030111-1, mingw-runtime 2.4 Any idea or sugguestion? Best regards, Parinya |