- set args
set args argument1 argument2
- show args
show args
使用範例 :
考慮代碼 :
- #include
- int main(int argc, char **argv) {
- int i;
- for(i=0; i
- printf("%s\n", argv[i]);
- }
- return 0;
- }
This is a blog to track what I had learned and share knowledge with all who can take advantage of them
(gdb) set args "arg1=1" "arg2=2" <設定給程式執行的參數 "arg1=1" "arg2=2">
(gdb) run <執行程式>
Starting program: /root/gdbDemo/demo_run-start "arg1=1" "arg2=2"
arg1=1
arg2=2
Program exited normally.
(gdb) show args <顯示設定給程式執行的參數>
Argument list to give program being debugged when it is started is ""arg1=1" "arg2=2"".
Source From Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 # git clean -d -fx 方案2: 今天在服务器上 gi...
沒有留言:
張貼留言