title: How do I set a breakpoint for operator() in gdb for C++?
body: <p>I have 2 methods in C++ class as follows:</p>
  
  <pre><code> class myClass {
       public:
           void operator()( string myString ) {
               // Some code
           }
           void myMethod() { ... }
   }
  </code></pre>
  
  <p>For a regular method, I can simply set the breakpoint in GDB as:</p>
  
  <pre><code>b myClass::myMethod
  </code></pre>
  
  <p>But how do I set the breakpoint for the first method?</p>
  
  <p>UPDATE:</p>
  
  <p>The suggestions from initial answers (b myClass ::operator()) does not work :(</p>
  
  <pre><code>b myClass::operator()
  Function "myClass::operator()" not defined.
  </code></pre>
  
  <p>Thanks!</p>