Getting GDB to save a list of breakpoints

后端 未结 11 1136
终归单人心
终归单人心 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:44

    warning: Current output protocol does not support redirection

    I also get this error/warning in GDB when trying to enable logging in TUI mode. However, the logging seems to work when in "non-TUI" mode. So I leave TUI mode whenever I want to log something. (Toggle back and forth into TUI mode with Ctrl + X, Ctrl + A).

    Here's how I work:

    1. start GDB (in normal mode)
    2. enable logging: set logging on - now it should not complain.
    3. toggle back/forth to TUI mode and do GDB stuff
    4. whenever I want to log something (like a huge backtrace dump) - toggle to normal mode

提交回复
热议问题