命令行选项在加载后在gdb下运行程序?

命令行选项在加载后在gdb下运行程序?,gdb,Gdb,使用gdb加载程序时,如何让gdb自动启动程序并在不等待的情况下运行它?使用并提供run命令 gdb -ex=r --args executable --with-options-for-the-executable 使用并提供run命令 gdb -ex=r --args executable --with-options-for-the-executable

使用gdb加载程序时,如何让gdb自动启动程序并在不等待的情况下运行它?

使用并提供run命令

gdb -ex=r --args executable --with-options-for-the-executable
使用并提供run命令

gdb -ex=r --args executable --with-options-for-the-executable