first of all, we should prepare the soruce code at the right place. and then start gdb to debug a process.
when the process is under debug, then use command "win" to switch to graphic interface which will show source code and debug information at the same time.
there are some other usefull commands, but now I forget it, just will remember when using it, maybe I will complete it later.
“help win” will show details.