title: In Visual Studio debugmode compiled executable: jmp to function body instead of direct address in call
body: <p>imagine this bogus program:</p>
  
  <pre><code>void foo ( void )
  {
      // anything
  }
  
  int main ()
  {
      foo ();
      return 0;
  }
  </code></pre>
  
  <p>When compiled in debug mode with Visual Studio, the compiler builds some kind of "function map" or however it is called.</p>
  
  <p>Thus when you for example follow foo () in a debugger, or just try to retrieve the offset of the function via &amp;foo, you find yourself in a "list" of jmp's, which will when you follow them again lead you to the actual function body.</p>
  
  <p>My question is: 
  Is there a possibility to disable this for single choosen functions so that &amp;foo returns the address to the function body, not the jmp. Ofcourse without disabling debug mode.</p>
  
  <p>If not, which flag enables/disables this for the entire program ?</p>
  
  <p>Thanks in advance !</p>
  
  <p>Edit for user SigTerm:
  <img src="https://i.stack.imgur.com/xbbCj.jpg" alt="enter image description here"></p>