title: gdb debugging stripped executables
body: <p>I have an executable provided as is. The creators have compiled it with minimal dependencies and no symbols. When I load it in gdb it sais:</p>
  
  <pre><code>...(no debugging symbols found)...done.
  </code></pre>
  
  <p>I would like to do step-by-step debugging in the assembler code with the optional exit point in case the execution does leave the shared executable. The reason I need this is because I have an executable which segfaults and I have no other means of tackling the problem. </p>
  
  <p>I have created a minimalist example (simple.c++): </p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;iostream&gt;
  
  int main () {
    std::cout &lt;&lt; "Hello World!" &lt;&lt; std::endl;
  
    return EXIT_SUCCESS;
  }
  </code></pre>
  
  <p>and compile it with:</p>
  
  <pre><code>g++ -static -O3 simple.c++ -o simple
  strip simple
  </code></pre>
  
  <p>Thank You in Advance. </p>