How to confirm action (answer “Y”) in gdb script?

前端 未结 1 2050
悲&欢浪女
悲&欢浪女 2021-02-05 04:15

I use gdb to debug my cpp code. I set breakpoints in this way:

(gdb) break ParseDriver.cc:60
No source file named ParseDriver.cc.
Make breakpoint pending on futu         


        
相关标签:
1条回答
  • 2021-02-05 04:55
    (gdb) set breakpoint pending on
    

    This will make gdb skip asking for confirmation, quote from the docs:

    This indicates that an unrecognized breakpoint location should automatically result in a pending breakpoint being created.

    0 讨论(0)
提交回复
热议问题