title: automatically skipping/ignoring external code in gdb
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1448426/how-to-avoid-entering-librarys-source-files-while-debugging-in-qt-creator-with">How to avoid entering library&#39;s source files while debugging in Qt Creator with gdb?</a>  </p>
  </blockquote>
  
  
  
  <p>anybody know how to tell gdb to only enter code that is in your project? I know it's hard for a debugger to know what is "in the project" and what is a library....but I thought some naive checks could help, eg don't look in any files that aren't in the users home directory. I frequently have code like this:</p>
  
  <pre><code>MyFunction(complexVarable, complexvar); //passed by value
  </code></pre>
  
  <p>and gdb insists on going through the copy constructors of the two passed values, but all I care about is MyFunction. Any tips? There are two parts to the question, </p>
  
  <ol>
  <li>ignore code that isn't mine (not in home dir)</li>
  <li>skip copies for function calls.</li>
  </ol>
  
  <p>thanks.</p>
  
  <p>EDIT: btw I use emacs, maybe there are some tools there I missed, but I'm open to using external gdb frontends. </p>