title: gdb "During startup program exited with code 126."
body: <p>I am debugging a c++ program:</p>
  
  <pre><code>gdb simplesearch.o
  </code></pre>
  
  <p>Then gdb startups successfully:</p>
  
  <pre><code>(gdb) Reading symbols from /home/zwx/workspace/xapian/examples/simplesearch.o...done.
  </code></pre>
  
  <p>But when I tried to run:</p>
  
  <pre><code>(gdb) run
  </code></pre>
  
  <p>gdb reports:</p>
  
  <pre><code>Starting program: /home/zwx/workspace/xapian/examples/simplesearch.o 
  /bin/bash: /home/zwx/workspace/xapian/examples/simplesearch.o: cannot execute binary file
  /bin/bash: /home/zwx/workspace/xapian/examples/simplesearch.o: Success
  During startup program exited with code 126.
  </code></pre>
  
  <p>Someone has idea?</p>