gdb-01篇

启动方式

    直接启动

        gdb

        gdb test.out

        gdb test.out core

    动态链接

        gdb test.out pid

载入目标程序

    file test.out

链接到指定进程

    attach pid    //链接成功的一瞬间,进程停止执行,等价于动态链接

设置命令行参数

    set args arg1 arg2

猜你喜欢

转载自blog.csdn.net/king_qg/article/details/80705403
GDB
今日推荐