gdb 调试带参数程序

在gdb中,运行程序使用r或是run命令。 程序的运行,你有可能需要设置下面四方面的事。 

1、程序运行参数。 
set args 可指定运行时参数。(如:set args 10 20 30 40 50) 
show args 命令可以查看设置好的运行参数。 

posted on 2018-01-03 17:50  lydstory  阅读(233)  评论(0编辑  收藏  举报

导航