I want to break every call to a method that has a specific object as the 'this' parameter
This means that you want to break down each member function of a particular class for which the object was created.
For convenience, we myclass_implementation.cpp
that all member functions are defined in a specific cpp file, such as myclass_implementation.cpp
You can use gdb to apply a breakpoint for each function inside myclass_implementation.cpp
as follows:
rbreak myclass_implementation.cpp:.
Let's say you want to break up some specific functions, such as getter functions that start with Get, then you can use gdb to apply breakpoints as follows:
rbreak myclass_implementation.cpp:Get*
source share