How does reverse debugging work?

前端 未结 8 985
谎友^
谎友^ 2020-12-04 07:21

GDB has a new version out that supports reverse debug (see http://www.gnu.org/software/gdb/news/reversible.html). I got to wondering how that works.

To get reverse

8条回答
  •  星月不相逢
    2020-12-04 08:02

    Reverse debugging means you can run the program backwards, which is very useful to track down the cause of a problem.

    You don't need to store the complete machine state for each step, only the changes. It is probably still quite expensive.

提交回复
热议问题