Well, things are not going as expected.
Compiler: mingw32-g++ (GCC) 3.4.5 (mingw special)
Debugger: GNU gdb 6.3 (for MinGW)
I'm trying to create conditional breakpoints based on inline functions. These are the steps:
Code:
$ gdb middle
$ break main.cpp: 14
$ condition 1 test.weight() == 12;
$ run
Problem is GDB can't evaluate inlined functions and weight() is an inlined member function. I get an error message from GDB warning me of this.
I define all my classes as this:
Code:
// START
class myClass {
public:
ctor;
dtor;
interface assessors (gets and sets);
interface (other);
private:
/* ... */
};
inlined definitions go here
//END
As such, I try to rebuild the whole thing with -fno-inline. However... it doesn't work. Inlining wasn't disabled. Please tell me I don't have to remove the inline qualifier from all of my code, only to have to put it back when I wish a release build.
This is my current compile command line options:
Code:
-fno-inline -Wall -Wextra -pedantic -g3