title: How do I ignore and continue past a SIGTRAP in GDB without causing slowdown?
body: <p>I have a situation within a C executable where GDB receives SIGTRAP and stops.</p>
  
  <p>I have tried the following command, which <em>sort of</em> works:</p>
  
  <pre><code>handle SIGTRAP nostop noprint noignore
  </code></pre>
  
  <p>This results in GDB spamming:</p>
  
  <pre><code>"Can't send signals to this remote system. SIGTRAP not sent."
  </code></pre>
  
  <p>While this looks like an error, it doesn't seem to have any effect on the code itself; it just continues until the next breakpoint, but unfortunately does so very slowly.</p>
  
  <p>Does anyone know how to make it silently do this? I know command has a silent option, but I don't know how to combine it with the handle command.</p>