VirtualBox

Changeset 9292 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 2, 2008 12:09:25 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31498
Message:

DBGDisas: distinguish between 32 & 64 bits modes.

File:
1 edited

Legend:

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

    r9274 r9292  
    413413            RTStrPrintf(pszOutput, cchOutput, "%04x:%04x  %s", Sel, (unsigned)GCPtr, szBuf);
    414414        else if (Sel == DBGF_SEL_FLAT)
    415             RTStrPrintf(pszOutput, cchOutput, "%VGv  %s", GCPtr, szBuf);
     415        {
     416            if (enmMode >= PGMMODE_AMD64)
     417                RTStrPrintf(pszOutput, cchOutput, "%VGv  %s", GCPtr, szBuf);
     418            else
     419                RTStrPrintf(pszOutput, cchOutput, "%VRv  %s", (RTRCPTR)GCPtr, szBuf);
     420        }
    416421        else
    417             RTStrPrintf(pszOutput, cchOutput, "%04x:%VGv  %s", Sel, GCPtr, szBuf);
     422        {
     423            if (enmMode >= PGMMODE_AMD64)
     424                RTStrPrintf(pszOutput, cchOutput, "%04x:%VGv  %s", Sel, GCPtr, szBuf);
     425            else
     426                RTStrPrintf(pszOutput, cchOutput, "%04x:%VRv  %s", Sel, (RTRCPTR)GCPtr, szBuf);
     427        }
    418428    }
    419429    else
     
    433443                        szBuf);
    434444        else if (Sel == DBGF_SEL_FLAT)
    435             RTStrPrintf(pszOutput, cchOutput, "%VGv %.*Vhxs%*s %s",
    436                         GCPtr,
    437                         cbBits, pau8Bits, cbBits < 8 ? (8 - cbBits) * 3 : 0, "",
    438                         szBuf);
     445        {
     446            if (enmMode >= PGMMODE_AMD64)
     447                RTStrPrintf(pszOutput, cchOutput, "%VGv %.*Vhxs%*s %s",
     448                            GCPtr,
     449                            cbBits, pau8Bits, cbBits < 8 ? (8 - cbBits) * 3 : 0, "",
     450                            szBuf);
     451            else
     452                RTStrPrintf(pszOutput, cchOutput, "%VRv %.*Vhxs%*s %s",
     453                            (RTRCPTR)GCPtr,
     454                            cbBits, pau8Bits, cbBits < 8 ? (8 - cbBits) * 3 : 0, "",
     455                            szBuf);
     456        }
    439457        else
    440             RTStrPrintf(pszOutput, cchOutput, "%04x:%VGv %.*Vhxs%*s %s",
    441                         Sel, GCPtr,
    442                         cbBits, pau8Bits, cbBits < 8 ? (8 - cbBits) * 3 : 0, "",
    443                         szBuf);
    444 
     458        {
     459            if (enmMode >= PGMMODE_AMD64)
     460                RTStrPrintf(pszOutput, cchOutput, "%04x:%VGv %.*Vhxs%*s %s",
     461                            Sel, GCPtr,
     462                            cbBits, pau8Bits, cbBits < 8 ? (8 - cbBits) * 3 : 0, "",
     463                            szBuf);
     464            else
     465                RTStrPrintf(pszOutput, cchOutput, "%04x:%VRv %.*Vhxs%*s %s",
     466                            Sel, (RTRCPTR)GCPtr,
     467                            cbBits, pau8Bits, cbBits < 8 ? (8 - cbBits) * 3 : 0, "",
     468                            szBuf);
     469        }
    445470    }
    446471
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