VirtualBox

Changeset 19633 in vbox for trunk/src


Ignore:
Timestamp:
May 12, 2009 2:43:09 PM (16 years ago)
Author:
vboxsync
Message:

cpumR3InfoGuest: dump state of current EMT if there is one

File:
1 edited

Legend:

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

    r19478 r19633  
    14141414    const char *pszComment;
    14151415    cpumR3InfoParseArg(pszArgs, &enmType, &pszComment);
    1416     pHlp->pfnPrintf(pHlp, "Guest CPUM state: %s\n", pszComment);
    14171416
    14181417    /* @todo SMP support! */
    1419     PVMCPU pVCpu = &pVM->aCpus[0];
     1418    PVMCPU pVCpu = VMMGetCpu(pVM);
     1419    if (!pVCpu)
     1420        pVCpu = &pVM->aCpus[0];
     1421
     1422    pHlp->pfnPrintf(pHlp, "Guest CPUM (VCPU %d) state: %s\n", pVCpu->idCpu, pszComment);
     1423
    14201424    PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    14211425    cpumR3InfoOne(pVM, pCtx, CPUMCTX2CORE(pCtx), pHlp, enmType, "");
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