Getting GDB to save a list of breakpoints

后端 未结 11 1124
终归单人心
终归单人心 2020-12-04 05:32

OK, info break lists the breakpoints, but not in a format that would work well with reusing them using the --command as in this question. Does GDB have a method for

11条回答
  •  [愿得一人]
    2020-12-04 05:45

    As of GDB 7.2 (2011-08-23) you can now use the save breakpoints command.

    save breakpoints 
      Save all current breakpoint definitions to a file suitable for use
      in a later debugging session.  To read the saved breakpoint
      definitions, use the `source' command.
    

    Use source to restore the saved breakpoints from the file.

提交回复
热议问题