how can one see content of registers with c++?
<p>Over using gdb, any one can see content of any registers ?   </p>

<pre><code> ex:

     x/x $ebp + 0x4
     print $eax    
</code></pre>

<p>I wonder, Can I do same thing by just with c++ ? If yes, how?</p>
