VirtualBox

Ignore:
Timestamp:
Jan 27, 2013 9:12:53 PM (12 years ago)
Author:
vboxsync
Message:

DBGF,DBGC,++: PVM -> PUVM. Some refactoring and cleanup as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r44330 r44399  
    4545#include "REMInternal.h"
    4646#include <VBox/vmm/vm.h>
     47#include <VBox/vmm/uvm.h>
    4748#include <VBox/param.h>
    4849#include <VBox/err.h>
     
    193194 * Debugger commands.
    194195 */
    195 static DECLCALLBACK(int) remR3CmdDisasEnableStepping(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs);
     196static FNDBGCCMD remR3CmdDisasEnableStepping;;
    196197
    197198/** '.remstep' arguments. */
     
    11211122         */
    11221123        remR3StateUpdate(pVM, pVCpu);
    1123         DBGFR3Info(pVM, "cpumguest", NULL, NULL);
     1124        DBGFR3Info(pVM->pUVM, "cpumguest", NULL, NULL);
    11241125        szBuf[0] = '\0';
    1125         rc = DBGFR3DisasInstrEx(pVM,
     1126        rc = DBGFR3DisasInstrEx(pVM->pUVM,
    11261127                                pVCpu->idCpu,
    11271128                                0, /* Sel */
     
    34903491            "*** handlers\n",
    34913492            (RTGCPTR)pTLBEntry->addr_code, (RTGCPHYS)pTLBEntry->addend, (RTGCPTR)addr, pVM->rem.s.iHandlerMemType, pVM->rem.s.iMMIOMemType, (RTGCPHYS)ioTLBEntry));
    3492     DBGFR3Info(pVM, "handlers", NULL, DBGFR3InfoLogRelHlp());
     3493    DBGFR3Info(pVM->pUVM, "handlers", NULL, DBGFR3InfoLogRelHlp());
    34933494    LogRel(("*** mmio\n"));
    3494     DBGFR3Info(pVM, "mmio", NULL, DBGFR3InfoLogRelHlp());
     3495    DBGFR3Info(pVM->pUVM, "mmio", NULL, DBGFR3InfoLogRelHlp());
    34953496    LogRel(("*** phys\n"));
    3496     DBGFR3Info(pVM, "phys", NULL, DBGFR3InfoLogRelHlp());
     3497    DBGFR3Info(pVM->pUVM, "phys", NULL, DBGFR3InfoLogRelHlp());
    34973498    cpu_abort(env, "Trying to execute code with memory type addr_code=%RGv addend=%RGp at %RGv. (iHandlerMemType=%#x iMMIOMemType=%#x)\n",
    34983499              (RTGCPTR)pTLBEntry->addr_code, (RTGCPHYS)pTLBEntry->addend, (RTGCPTR)addr, pVM->rem.s.iHandlerMemType, pVM->rem.s.iMMIOMemType);
     
    39233924 * External Debugger Command: .remstep [on|off|1|0]
    39243925 */
    3925 static DECLCALLBACK(int) remR3CmdDisasEnableStepping(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs)
     3926static DECLCALLBACK(int) remR3CmdDisasEnableStepping(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PUVM pUVM, PCDBGCVAR paArgs, unsigned cArgs)
    39263927{
    39273928    int rc;
     3929    PVM pVM = pUVM->pVM;
    39283930
    39293931    if (cArgs == 0)
     
    39883990     */
    39893991    if (fLog2)
    3990         DBGFR3InfoLog(pVM, "cpumguest", pszPrefix);
     3992        DBGFR3_INFO_LOG(pVM, "cpumguest", pszPrefix);
    39913993
    39923994    /*
     
    39984000        char    szBuf[256];
    39994001        szBuf[0] = '\0';
    4000         int rc = DBGFR3DisasInstrEx(pVCpu->pVMR3,
     4002        int rc = DBGFR3DisasInstrEx(pVCpu->pVMR3->pUVM,
    40014003                                    pVCpu->idCpu,
    40024004                                    0, /* Sel */
     
    40924094            char        szBuf[256];
    40934095            uint32_t    cbInstr;
    4094             int rc = DBGFR3DisasInstrEx(pVM,
     4096            int rc = DBGFR3DisasInstrEx(pVM->pUVM,
    40954097                                        pVCpu->idCpu,
    40964098                                        cs,
     
    41314133    DBGFADDRESS Addr;
    41324134
    4133     int rc = DBGFR3AsSymbolByAddr(pVM, DBGF_AS_GLOBAL, DBGFR3AddrFromFlat(pVM, &Addr, orig_addr), &off, &Sym, NULL /*phMod*/);
     4135    int rc = DBGFR3AsSymbolByAddr(pVM->pUVM, DBGF_AS_GLOBAL, DBGFR3AddrFromFlat(pVM->pUVM, &Addr, orig_addr),
     4136                                  &off, &Sym, NULL /*phMod*/);
    41344137    if (RT_SUCCESS(rc))
    41354138    {
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