Page 1 of 1

Why does the processes get an underscore attachd to them?

Posted: Wed Jan 12, 2011 6:31 am
by coffeenet
Hi,
I'm using the debugger, and at a breakpoint now. In the call stack, _Com_Frame() exists instead of Com_Frame(). I try to double click _Com_Frame() but the compiler says that it doesn't have the code for it.
What to do?

Re: Why does the processes get an underscore attachd to them?

Posted: Wed Jan 12, 2011 9:34 am
by ^misantropia^
The underscore? To prevent linker errors when you redefine libc functions like printf().

Re debugging: you need to compile a debug build. That is, a binary with debug symbols.

Re: Why does the processes get an underscore attachd to them?

Posted: Thu Jan 13, 2011 3:27 am
by coffeenet
I was in debugging mode (compiled a debug build) when I made this posted actually. :)
I did things all over again. And, it seems that things are alright for now. I will bump if I find any trouble again.
Thanks for your reply.