VirtualBox

Changeset 42449 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 30, 2012 3:10:30 PM (12 years ago)
Author:
vboxsync
Message:

DBGFStack.cpp: Forced it to work with hypervisor stacks again (the selector turns out a bit weird, but we get something out of it).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFStack.cpp

    r42165 r42449  
    300300    if (pAddrPC)
    301301        pCur->AddrPC = *pAddrPC;
     302    else if (enmCodeType != DBGFCODETYPE_GUEST)
     303        DBGFR3AddrFromFlat(pVM, &pCur->AddrPC, pCtxCore->rip);
    302304    else
    303305        rc = DBGFR3AddrFromSelOff(pVM, idCpu, &pCur->AddrPC, pCtxCore->cs.Sel, pCtxCore->rip);
     
    340342        if (pAddrStack)
    341343            pCur->AddrStack = *pAddrStack;
     344        else if (enmCodeType != DBGFCODETYPE_GUEST)
     345            DBGFR3AddrFromFlat(pVM, &pCur->AddrStack, pCtxCore->rsp & fAddrMask);
    342346        else
    343347            rc = DBGFR3AddrFromSelOff(pVM, idCpu, &pCur->AddrStack, pCtxCore->ss.Sel, pCtxCore->rsp & fAddrMask);
     
    345349        if (pAddrFrame)
    346350            pCur->AddrFrame = *pAddrFrame;
     351        else if (enmCodeType != DBGFCODETYPE_GUEST)
     352            DBGFR3AddrFromFlat(pVM, &pCur->AddrFrame, pCtxCore->rbp & fAddrMask);
    347353        else if (RT_SUCCESS(rc))
    348354            rc = DBGFR3AddrFromSelOff(pVM, idCpu, &pCur->AddrFrame, pCtxCore->ss.Sel, pCtxCore->rbp & fAddrMask);
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