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.
本文介绍如何使用GDB调试器通过图形界面进行代码调试。首先需要将源代码置于正确位置并启动GDB,当进程处于调试状态时,使用win命令切换到图形界面查看源代码及调试信息。
761

被折叠的 条评论
为什么被折叠?



