In Visual Studio debugmode, the executable is compiled: jmp for the body function instead of the direct address in the call

imagine this dummy program:

void foo ( void )
{
    // anything
}

int main ()
{
    foo ();
    return 0;
}

When compiling in debug mode in Visual Studio, the compiler creates some kind of "functional map" or, nevertheless, it is called.

Thus, when you, for example, follow foo () in the debugger or just try to get the offset of the function via & foo, you get to the jmp "list", which, when you follow them, will bring you back to the actual body of the function.

My question is: Is it possible to disable this for the individual selected functions, so & foo returns the address in the function body, not in jmp. Of course, without disabling debug mode.

If not, which flag enables / disables this for the entire program?

Thanks in advance!

SigTerm: enter image description here

+2
1

" "

+5

All Articles