title: gdb fails when checking conditions at breakpoints
body: <p>I define a breakpoint by</p>
  
  <pre><code>b foo:124 if strcmp(bar::foo::getName(), "abc")==0
  </code></pre>
  
  <p>But gdb fails with the following errors</p>
  
  <pre><code>[Thread 0x7fffe8ef9700 (LWP 25817) exited]
  [Switching to Thread 0x7fffdfc2f700 (LWP 25972)]
  Error in testing breakpoint condition:
  Couldn't get registers: No such process.
  An error occurred while in a function called from GDB.
  Evaluation of the expression containing the function
  (bar::foo::getName() const) will be abandoned.
  When the function is done executing, GDB will silently stop.
  Selected thread is running.
  </code></pre>