gdb 调试main带参数 gdb program start a b c//参数为a b c然后从main函数开始 r a b c//参数为a b c来运行程序 转载于:https://www.cnblogs.com/zzyoucan/p/7533522.html