Skip to content

kvm backend Got into OnDebugTrap with LastBreakpoint error #223

@jasocrow

Description

@jasocrow

I am consistently seeing the error message "Got into OnDebugTrap with LastBreakpoint error" when using the KVM backend.

I suspect the trap flag needs to be explicitly disabled here:

Instead of:

    if (TraceType_ == TraceType_t::Rip) {
      TrapFlag(true);
    } else {
      KvmDebugPrint("Turning off RFLAGS.TF\n");
    }

do:

    if (TraceType_ == TraceType_t::Rip) {
      TrapFlag(true);
    } else {
      KvmDebugPrint("Turning off RFLAGS.TF\n");
     TrapFlag(false);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions