title: The problem about code in Exploitation technique
body: <p>I am newbie and learned of an exploit while reading some document, I see some problem with this code. It's not related to what I'm learning in school.</p>
  
  <p>This is the code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main( int argc, char **argv ){
  
  long ebp;
  
  asm ( "movl %%ebp, %0\n" :"=r"(ebp) );
  printf( "Current ebp: 0x%x\n", ebp ),
  return 0;
  }
  </code></pre>
  
  <p>My question:
  <code>asm ( "movl %%ebp, %0\n" :"=r"(ebp) )</code>>>> What is its impact on the enforcement program and debug with gdb?</p>
  
  <p>Thanks for the help</p>