VirtualBox

Ignore:
Timestamp:
Sep 20, 2007 10:06:48 AM (17 years ago)
Author:
vboxsync
Message:

Don't trigger breakpoints in ring 0. (AssertRelease & co)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r4829 r4917  
    943943# define LOG_GROUP LOG_GROUP_EM
    944944
     945DECLEXPORT(void) RTCALL RTR0AssertBreakpoint(void *pvVM)
     946{
     947    if (pvVM)
     948    {
     949        PVM pVM = (PVM)pvVM;
     950        pVM->vmm.s.enmCallHostOperation = VMMCALLHOST_VM_R0_HYPER_ASSERTION;
     951        pVM->vmm.s.u64CallHostArg = 0;
     952        pVM->vmm.s.rcCallHost = VERR_INTERNAL_ERROR;
     953        int rc = vmmR0CallHostLongJmp(&pVM->vmm.s.CallHostR0JmpBuf, VERR_INTERNAL_ERROR);
     954        if (rc == VINF_SUCCESS)
     955            rc = pVM->vmm.s.rcCallHost;
     956    }
     957}
     958
    945959/** Runtime assert implementation for Native Win32 Ring-0. */
    946960DECLEXPORT(void) RTCALL AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
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