Is it possible to set a conditional breakpoint in GDB where the the condition expression contains objects of arbitrary class types?
I need to set a breakpoint inside a function where the condition will check whether a member string variable of an object equals to say "foo". So, something like:
condition 1 myObject->myStringVar == "foo"
But it's not working. Does GDB only allow conditional breakpoints on primitive and char* types? Is there any way I could set a conditional breakpoint on non-primitive types?