Can I use gdb to skip a line without having to type line numbers?

后端 未结 3 1888
执笔经年
执笔经年 2020-12-07 13:11

I know I can use jump to set the program counter to a specific line and so I can skip one or more lines (or execute some lines again). Can I easily just skip th

3条回答
  •  难免孤独
    2020-12-07 13:59

    I have the following in my .gdbinit config file:

    define skip
        tbreak +1
        jump +1
    end
    

    So just type skip in gdb to skip a line.

提交回复
热议问题