VirtualBox

Changeset 35505 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jan 12, 2011 2:50:36 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69388
Message:

DBGFReg.cpp: Cast register value to the alias type if specified.

File:
1 edited

Legend:

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

    r35490 r35505  
    11121112    dbgfR3RegValClear(pValue);
    11131113    if (!pSubField)
     1114    {
    11141115        rc = pDesc->pfnGet(pSet->uUserArg.pv, pDesc, pValue);
     1116        if (   pLookupRec->pAlias
     1117            && pLookupRec->pAlias->enmType != enmValueType
     1118            && RT_SUCCESS(rc))
     1119        {
     1120            rc = dbgfR3RegValCast(pValue, enmValueType, pLookupRec->pAlias->enmType);
     1121            enmValueType = pLookupRec->pAlias->enmType;
     1122        }
     1123    }
    11151124    else
    11161125    {
     
    11231132        {
    11241133            rc = pDesc->pfnGet(pSet->uUserArg.pv, pDesc, pValue);
     1134            if (   pLookupRec->pAlias
     1135                && pLookupRec->pAlias->enmType != enmValueType
     1136                && RT_SUCCESS(rc))
     1137            {
     1138                rc = dbgfR3RegValCast(pValue, enmValueType, pLookupRec->pAlias->enmType);
     1139                enmValueType = pLookupRec->pAlias->enmType;
     1140            }
    11251141            if (RT_SUCCESS(rc))
    11261142            {
Note: See TracChangeset for help on using the changeset viewer.

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