gdb启动程序的三种方式run start starti

 

run -- Start debugged program.

开始执行程序,如果没有设置断点,不会停下。


start -- Start the debugged program stopping at the beginning of the main procedure.

开始执行程序,在main 函数处会停下来

 

starti -- Start the debugged program stopping at the first instruction.

开始执行程序,在第一条指令处会停下来

 

posted @ 2022-01-16 21:21  张志伟122  阅读(1474)  评论(0编辑  收藏  举报