title: How to make Valgrind debugger step through a program
body: <p>Good morning, I am trying to use the Valgrind debugger to step through a program. </p>
  
  <p>My valgrind command line is <code>valgrind -tool memcheck --leak-check=full --db-enable=yes ./MatchUpAcurate.exe.</code> </p>
  
  <p>I am using valgrind-3.5.0 on Centos Linux release 5.5 with gdb version 7,0.1-23.el5_5.2.</p>
  
  <p>I enter Yes when valgrind asks the question Attach to Debugger. Then, the valgrind debugger returns with: <code>4428: return new tuple2&lt;int,A&gt;(2, i++, p-&gt;next());</code> </p>
  
  <p>When I try to use the gdb step or continue command, valgrind says </p>
  
  <p><code>[New Thread 0x410fd10 (LWP 6548] Cannot find user-level thread for LWP 6551: generic error.</code></p>
  
  <p>When I try to use <code>valgrind --single-step=yes</code> debugger option on the valgrind command-line, valgriind says <code>Bad option aborting</code>. </p>
  
  <p>Could any valgrind users show me how  to step through C++ source  code or continue through a program? Thank you. </p>