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

(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.

Leave a Comment