Skip to content
Snippets Groups Projects
  • Pavel Dovgaluk's avatar
    cda38259
    gdbstub: add reverse continue support in replay mode · cda38259
    Pavel Dovgaluk authored
    
    This patch adds support of the reverse continue operation for gdbstub.
    Reverse continue finds the last breakpoint that would happen in normal
    execution from the beginning to the current moment.
    Implementation of the reverse continue replays the execution twice:
    to find the breakpoints that were hit and to seek to the last breakpoint.
    Reverse continue loads the previous snapshot and tries to find the breakpoint
    since that moment. If there are no such breakpoints, it proceeds to
    the earlier snapshot, and so on. When no breakpoints or watchpoints were
    hit at all, execution stops at the beginning of the replay log.
    
    Signed-off-by: default avatarPavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
    Message-Id: <160174522930.12451.6994758004725016836.stgit@pasha-ThinkPad-X280>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    cda38259
    History
    gdbstub: add reverse continue support in replay mode
    Pavel Dovgaluk authored
    
    This patch adds support of the reverse continue operation for gdbstub.
    Reverse continue finds the last breakpoint that would happen in normal
    execution from the beginning to the current moment.
    Implementation of the reverse continue replays the execution twice:
    to find the breakpoints that were hit and to seek to the last breakpoint.
    Reverse continue loads the previous snapshot and tries to find the breakpoint
    since that moment. If there are no such breakpoints, it proceeds to
    the earlier snapshot, and so on. When no breakpoints or watchpoints were
    hit at all, execution stops at the beginning of the replay log.
    
    Signed-off-by: default avatarPavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
    Message-Id: <160174522930.12451.6994758004725016836.stgit@pasha-ThinkPad-X280>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>