VirtualBox

Changeset 86235 in vbox


Ignore:
Timestamp:
Sep 23, 2020 12:24:21 PM (4 years ago)
Author:
vboxsync
Message:

Debugger/DBGCRemoteKd: Emulate DR<n> registers in order to transparently support hardware breakpoints from WinDbg (lightly tested) [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCRemoteKd.cpp

    r86234 r86235  
    25412541    aRespSegs[4].cbSeg = 2;
    25422542
    2543     DebugIo.u.Str.cbStr =   aRespSegs[1].cbSeg
    2544                           + aRespSegs[2].cbSeg
    2545                           + aRespSegs[3].cbSeg
    2546                           + aRespSegs[4].cbSeg;
     2543    DebugIo.u.Str.cbStr = (uint32_t)(  aRespSegs[1].cbSeg
     2544                                     + aRespSegs[2].cbSeg
     2545                                     + aRespSegs[3].cbSeg
     2546                                     + aRespSegs[4].cbSeg);
    25472547
    25482548    int rc = dbgcKdCtxPktSendSg(pThis, KD_PACKET_HDR_SIGNATURE_DATA, KD_PACKET_HDR_SUB_TYPE_DEBUG_IO,
     
    33863386        {
    33873387            rc = VMR3Reset(pThis->Dbgc.pUVM); /* Doesn't expect an answer here. */
     3388            if (   RT_SUCCESS(rc)
     3389                && DBGFR3IsHalted(pThis->Dbgc.pUVM, VMCPUID_ALL))
     3390                rc = DBGFR3Resume(pThis->Dbgc.pUVM, VMCPUID_ALL);
    33883391            break;
    33893392        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette