How to trace Xvnc with GDB. I want to trace Xvnc with GDB. But I don't know where to add '-g' FLAG, because xc has many Makefile. And I can't find main function of Xvnc. I use grep -r main xc/programs/Xserver/ to find main function. It matched many main function, but those are not in vnc dir. So, Who can tell me how to add '-g' FLAG, and where is main function of Xvnc. Thanks.