How does reverse debugging work?

前端 未结 8 965
谎友^
谎友^ 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条回答
  •  -上瘾入骨i
    2020-12-04 08:12

    Here is how another reverse-debugger called ODB works. Extract:

    Omniscient Debugging is the idea of collecting "time stamps" at each "point of interest" (setting a value, making a method call, throwing/catching an exception) in a program and then allowing the programmer to use those time stamps to explore the history of that program run.

    The ODB ... inserts code into the program's classes as they are loaded and when the program runs, the events are recorded.

    I'm guessing the gdb one works in the same kind of way.

提交回复
热议问题