VirtualBox

Changeset 9844 in vbox


Ignore:
Timestamp:
Jun 20, 2008 9:50:13 AM (17 years ago)
Author:
vboxsync
Message:

Correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r9843 r9844  
    14301430                        pszPrefix, pCtx->msrSFMASK,
    14311431                        pszPrefix, pCtx->msrKERNELGSBASE);
    1432 
    1433                     /*
    1434                     * Disassemble one instruction at cs:eip.
    1435                     */
    1436                     return pCmdHlp->pfnExec(pCmdHlp, "u %016x L 0", pCtx->rip);
    14371432            }
    14381433            else
     
    14651460                    pszPrefix, pCtx->SysEnter.cs, pCtx->SysEnter.eip, pCtx->SysEnter.esp,
    14661461                    pszPrefix, pCtx->fpu.FCW, pszPrefix, pCtx->fpu.FSW, pszPrefix, pCtx->fpu.FTW);
    1467 
    1468                     /*
    1469                     * Disassemble one instruction at cs:eip.
    1470                     */
    1471                     return pCmdHlp->pfnExec(pCmdHlp, "u %04x:%08x L 0", pCtx->cs, pCtx->eip);
     1462        }
     1463        if (CPUMIsGuestIn64BitCodeEx(pCtx))
     1464        {
     1465            /*
     1466             * Disassemble one instruction at cs:rip.
     1467             */
     1468            return pCmdHlp->pfnExec(pCmdHlp, "u %016x L 0", pCtx->rip);
     1469        }
     1470        else
     1471        {
     1472            /*
     1473             * Disassemble one instruction at cs:eip.
     1474             */
     1475            return pCmdHlp->pfnExec(pCmdHlp, "u %04x:%08x L 0", pCtx->cs, pCtx->eip);
    14721476        }
    14731477    }
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