how to show source code when using gdb

来源:互联网 发布:海莲汉芙 知乎 编辑:程序博客网 时间:2024/05/02 23:21

 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.

 

 

原创粉丝点击