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/VBox/Debugger/testcase/tstDBGCStubs.cpp

    r42165 r44399  
    2323
    2424#include <VBox/vmm/dbgf.h>
    25 VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromFlat(PVM pVM, PDBGFADDRESS pAddress, RTGCUINTPTR FlatPtr)
    26 {
    27     return NULL;
    28 }
    29 
    30 VMMR3DECL(int) DBGFR3AddrFromSelOff(PVM pVM, VMCPUID idCpu, PDBGFADDRESS pAddress, RTSEL Sel, RTUINTPTR off)
     25VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromFlat(PUVM pUVM, PDBGFADDRESS pAddress, RTGCUINTPTR FlatPtr)
     26{
     27    return NULL;
     28}
     29
     30VMMR3DECL(int) DBGFR3AddrFromSelOff(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, RTSEL Sel, RTUINTPTR off)
    3131{
    3232    /* bad:bad -> provke error during parsing. */
     
    4242}
    4343
    44 VMMR3DECL(int)  DBGFR3AddrToPhys(PVM pVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTGCPHYS pGCPhys)
    45 {
    46     return VERR_INTERNAL_ERROR;
    47 }
    48 
    49 VMMR3DECL(int)  DBGFR3AddrToHostPhys(PVMCPU pVCpu, PDBGFADDRESS pAddress, PRTHCPHYS pHCPhys)
    50 {
    51     return VERR_INTERNAL_ERROR;
    52 }
    53 
    54 VMMR3DECL(int)  DBGFR3AddrToVolatileR3Ptr(PVMCPU pVCpu, PDBGFADDRESS pAddress, bool fReadOnly, void **ppvR3Ptr)
    55 {
    56     return VERR_INTERNAL_ERROR;
    57 }
    58 
    59 VMMR3DECL(int) DBGFR3Attach(PVM pVM)
    60 {
    61     return VERR_INTERNAL_ERROR;
    62 }
    63 
    64 VMMR3DECL(int) DBGFR3BpClear(PVM pVM, RTUINT iBp)
    65 {
    66     return VERR_INTERNAL_ERROR;
    67 }
    68 VMMR3DECL(int) DBGFR3BpDisable(PVM pVM, RTUINT iBp)
    69 {
    70     return VERR_INTERNAL_ERROR;
    71 }
    72 VMMR3DECL(int) DBGFR3BpEnable(PVM pVM, RTUINT iBp)
    73 {
    74     return VERR_INTERNAL_ERROR;
    75 }
    76 VMMR3DECL(int) DBGFR3BpEnum(PVM pVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
    77 {
    78     return VERR_INTERNAL_ERROR;
    79 }
    80 VMMR3DECL(int) DBGFR3BpSet(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
    81 {
    82     return VERR_INTERNAL_ERROR;
    83 }
    84 VMMR3DECL(int) DBGFR3BpSetReg(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable,
     44VMMR3DECL(int)  DBGFR3AddrToPhys(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTGCPHYS pGCPhys)
     45{
     46    return VERR_INTERNAL_ERROR;
     47}
     48
     49VMMR3DECL(int) DBGFR3Attach(PUVM pUVM)
     50{
     51    return VERR_INTERNAL_ERROR;
     52}
     53
     54VMMR3DECL(int) DBGFR3BpClear(PUVM pUVM, RTUINT iBp)
     55{
     56    return VERR_INTERNAL_ERROR;
     57}
     58VMMR3DECL(int) DBGFR3BpDisable(PUVM pUVM, RTUINT iBp)
     59{
     60    return VERR_INTERNAL_ERROR;
     61}
     62VMMR3DECL(int) DBGFR3BpEnable(PUVM pUVM, RTUINT iBp)
     63{
     64    return VERR_INTERNAL_ERROR;
     65}
     66VMMR3DECL(int) DBGFR3BpEnum(PUVM pUVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
     67{
     68    return VERR_INTERNAL_ERROR;
     69}
     70VMMR3DECL(int) DBGFR3BpSet(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
     71{
     72    return VERR_INTERNAL_ERROR;
     73}
     74VMMR3DECL(int) DBGFR3BpSetReg(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable,
    8575                              uint8_t fType, uint8_t cb, PRTUINT piBp)
    8676{
    8777    return VERR_INTERNAL_ERROR;
    8878}
    89 VMMR3DECL(int) DBGFR3BpSetREM(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
    90 {
    91     return VERR_INTERNAL_ERROR;
    92 }
    93 VMMR3DECL(bool) DBGFR3CanWait(PVM pVM)
     79VMMR3DECL(int) DBGFR3BpSetREM(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
     80{
     81    return VERR_INTERNAL_ERROR;
     82}
     83VMMR3DECL(bool) DBGFR3CanWait(PUVM pUVM)
    9484{
    9585    return true;
    9686}
    97 VMMR3DECL(int) DBGFR3Detach(PVM pVM)
    98 {
    99     return VERR_INTERNAL_ERROR;
    100 }
    101 VMMR3DECL(int) DBGFR3DisasInstrEx(PVM pVM, VMCPUID idCpu, RTSEL Sel, RTGCPTR GCPtr, uint32_t fFlags,
     87VMMR3DECL(int) DBGFR3Detach(PUVM pUVM)
     88{
     89    return VERR_INTERNAL_ERROR;
     90}
     91VMMR3DECL(int) DBGFR3DisasInstrEx(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, RTGCPTR GCPtr, uint32_t fFlags,
    10292                                  char *pszOutput, uint32_t cchOutput, uint32_t *pcbInstr)
    10393{
    10494    return VERR_INTERNAL_ERROR;
    10595}
    106 VMMR3DECL(int) DBGFR3EventWait(PVM pVM, RTMSINTERVAL cMillies, PCDBGFEVENT *ppEvent)
    107 {
    108     return VERR_INTERNAL_ERROR;
    109 }
    110 VMMR3DECL(int) DBGFR3Halt(PVM pVM)
    111 {
    112     return VERR_INTERNAL_ERROR;
    113 }
    114 VMMR3DECL(int) DBGFR3Info(PVM pVM, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
    115 {
    116     return VERR_INTERNAL_ERROR;
    117 }
    118 VMMR3DECL(int) DBGFR3InfoEx(PVM pVM, VMCPUID idCpu, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
    119 {
    120     return VERR_INTERNAL_ERROR;
    121 }
    122 VMMR3DECL(bool) DBGFR3IsHalted(PVM pVM)
     96VMMR3DECL(int) DBGFR3EventWait(PUVM pUVM, RTMSINTERVAL cMillies, PCDBGFEVENT *ppEvent)
     97{
     98    return VERR_INTERNAL_ERROR;
     99}
     100VMMR3DECL(int) DBGFR3Halt(PUVM pUVM)
     101{
     102    return VERR_INTERNAL_ERROR;
     103}
     104VMMR3DECL(int) DBGFR3Info(PUVM pUVM, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
     105{
     106    return VERR_INTERNAL_ERROR;
     107}
     108VMMR3DECL(int) DBGFR3InfoEx(PUVM pUVM, VMCPUID idCpu, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
     109{
     110    return VERR_INTERNAL_ERROR;
     111}
     112VMMR3DECL(bool) DBGFR3IsHalted(PUVM pUVM)
    123113{
    124114    return true;
    125115}
    126 VMMR3DECL(int) DBGFR3LineByAddr(PVM pVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFLINE pLine)
    127 {
    128     return VERR_INTERNAL_ERROR;
    129 }
    130 VMMR3DECL(int) DBGFR3LogModifyDestinations(PVM pVM, const char *pszDestSettings)
    131 {
    132     return VERR_INTERNAL_ERROR;
    133 }
    134 VMMR3DECL(int) DBGFR3LogModifyFlags(PVM pVM, const char *pszFlagSettings)
    135 {
    136     return VERR_INTERNAL_ERROR;
    137 }
    138 VMMR3DECL(int) DBGFR3LogModifyGroups(PVM pVM, const char *pszGroupSettings)
    139 {
    140     return VERR_INTERNAL_ERROR;
    141 }
    142 VMMR3DECL(int) DBGFR3ModuleLoad(PVM pVM, const char *pszFilename, RTGCUINTPTR AddressDelta, const char *pszName, RTGCUINTPTR ModuleAddress, unsigned cbImage)
    143 {
    144     return VERR_INTERNAL_ERROR;
    145 }
    146 VMMR3DECL(int) DBGFR3AsLoadImage(PVM pVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, uint32_t fFlags)
    147 {
    148     return VERR_INTERNAL_ERROR;
    149 }
    150 VMMR3DECL(int) DBGFR3AsLoadMap(PVM pVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, RTGCUINTPTR uSubtrahend, uint32_t fFlags)
    151 {
    152     return VERR_INTERNAL_ERROR;
    153 }
    154 VMMR3DECL(RTDBGAS) DBGFR3AsResolveAndRetain(PVM pVM, RTDBGAS hAlias)
     116VMMR3DECL(int) DBGFR3LineByAddr(PUVM pUVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFLINE pLine)
     117{
     118    return VERR_INTERNAL_ERROR;
     119}
     120VMMR3DECL(int) DBGFR3LogModifyDestinations(PUVM pUVM, const char *pszDestSettings)
     121{
     122    return VERR_INTERNAL_ERROR;
     123}
     124VMMR3DECL(int) DBGFR3LogModifyFlags(PUVM pUVM, const char *pszFlagSettings)
     125{
     126    return VERR_INTERNAL_ERROR;
     127}
     128VMMR3DECL(int) DBGFR3LogModifyGroups(PUVM pUVM, const char *pszGroupSettings)
     129{
     130    return VERR_INTERNAL_ERROR;
     131}
     132VMMR3DECL(int) DBGFR3ModuleLoad(PUVM pUVM, const char *pszFilename, RTGCUINTPTR AddressDelta, const char *pszName, RTGCUINTPTR ModuleAddress, unsigned cbImage)
     133{
     134    return VERR_INTERNAL_ERROR;
     135}
     136VMMR3DECL(int) DBGFR3AsLoadImage(PUVM pUVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, uint32_t fFlags)
     137{
     138    return VERR_INTERNAL_ERROR;
     139}
     140VMMR3DECL(int) DBGFR3AsLoadMap(PUVM pUVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, RTGCUINTPTR uSubtrahend, uint32_t fFlags)
     141{
     142    return VERR_INTERNAL_ERROR;
     143}
     144VMMR3DECL(RTDBGAS) DBGFR3AsResolveAndRetain(PUVM pUVM, RTDBGAS hAlias)
    155145{
    156146    return NIL_RTDBGAS;
    157147}
    158 VMMR3DECL(int) DBGFR3Resume(PVM pVM)
    159 {
    160     return VERR_INTERNAL_ERROR;
    161 }
    162 VMMR3DECL(int) DBGFR3StackWalkBegin(PVM pVM, VMCPUID idCpu, DBGFCODETYPE enmCodeType, PCDBGFSTACKFRAME *ppFirstFrame)
     148VMMR3DECL(int) DBGFR3Resume(PUVM pUVM)
     149{
     150    return VERR_INTERNAL_ERROR;
     151}
     152VMMR3DECL(int) DBGFR3StackWalkBegin(PUVM pUVM, VMCPUID idCpu, DBGFCODETYPE enmCodeType, PCDBGFSTACKFRAME *ppFirstFrame)
    163153{
    164154    return VERR_INTERNAL_ERROR;
     
    171161{
    172162}
    173 VMMR3DECL(int) DBGFR3Step(PVM pVM, VMCPUID idCpu)
    174 {
    175     return VERR_INTERNAL_ERROR;
    176 }
    177 VMMR3DECL(int) DBGFR3AsSymbolByAddr(PVM pVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress, PRTGCINTPTR poffDisplacement, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
    178 {
    179     return VERR_INTERNAL_ERROR;
    180 }
    181 VMMR3DECL(int) DBGFR3AsSymbolByName(PVM pVM, RTDBGAS hDbgAs, const char *pszSymbol, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
    182 {
    183     return VERR_INTERNAL_ERROR;
    184 }
    185 VMMR3DECL(int) DBGFR3MemScan(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, RTGCUINTPTR uAlign, const void *pabNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress)
    186 {
    187     return VERR_INTERNAL_ERROR;
    188 }
    189 VMMR3DECL(int) DBGFR3MemRead(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, void *pvBuf, size_t cbRead)
    190 {
    191     return VERR_INTERNAL_ERROR;
    192 }
    193 VMMR3DECL(int) DBGFR3MemReadString(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf)
    194 {
    195     return VERR_INTERNAL_ERROR;
    196 }
    197 VMMR3DECL(int) DBGFR3MemWrite(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, const void *pvBuf, size_t cbRead)
    198 {
    199     return VERR_INTERNAL_ERROR;
    200 }
    201 VMMDECL(int) DBGFR3PagingDumpEx(PVM pVM, VMCPUID idCpu, uint32_t fFlags, uint64_t cr3, uint64_t u64FirstAddr,
     163VMMR3DECL(int) DBGFR3Step(PUVM pUVM, VMCPUID idCpu)
     164{
     165    return VERR_INTERNAL_ERROR;
     166}
     167VMMR3DECL(int) DBGFR3AsSymbolByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress, PRTGCINTPTR poffDisplacement, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
     168{
     169    return VERR_INTERNAL_ERROR;
     170}
     171VMMR3DECL(int) DBGFR3AsSymbolByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszSymbol, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
     172{
     173    return VERR_INTERNAL_ERROR;
     174}
     175VMMR3DECL(int) DBGFR3MemScan(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, RTGCUINTPTR uAlign, const void *pabNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress)
     176{
     177    return VERR_INTERNAL_ERROR;
     178}
     179VMMR3DECL(int) DBGFR3MemRead(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, void *pvBuf, size_t cbRead)
     180{
     181    return VERR_INTERNAL_ERROR;
     182}
     183VMMR3DECL(int) DBGFR3MemReadString(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf)
     184{
     185    return VERR_INTERNAL_ERROR;
     186}
     187VMMR3DECL(int) DBGFR3MemWrite(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, const void *pvBuf, size_t cbRead)
     188{
     189    return VERR_INTERNAL_ERROR;
     190}
     191VMMDECL(int) DBGFR3PagingDumpEx(PUVM pUVM, VMCPUID idCpu, uint32_t fFlags, uint64_t cr3, uint64_t u64FirstAddr,
    202192                                uint64_t u64LastAddr, uint32_t cMaxDepth, PCDBGFINFOHLP pHlp)
    203193{
    204194    return VERR_INTERNAL_ERROR;
    205195}
    206 VMMR3DECL(int) DBGFR3RegNmValidate(PVM pVM, VMCPUID idDefCpu, const char *pszReg)
     196VMMR3DECL(int) DBGFR3RegNmValidate(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg)
    207197{
    208198    if (   !strcmp(pszReg, "ah")
     
    213203    return VERR_DBGF_REGISTER_NOT_FOUND;
    214204}
    215 VMMR3DECL(int) DBGFR3RegCpuQueryU8(  PVM pVM, VMCPUID idCpu, DBGFREG enmReg, uint8_t     *pu8)
    216 {
    217     return VERR_INTERNAL_ERROR;
    218 }
    219 VMMR3DECL(int) DBGFR3RegCpuQueryU16( PVM pVM, VMCPUID idCpu, DBGFREG enmReg, uint16_t    *pu16)
    220 {
    221     return VERR_INTERNAL_ERROR;
    222 }
    223 VMMR3DECL(int) DBGFR3RegCpuQueryU32( PVM pVM, VMCPUID idCpu, DBGFREG enmReg, uint32_t    *pu32)
    224 {
    225     return VERR_INTERNAL_ERROR;
    226 }
    227 VMMR3DECL(int) DBGFR3RegCpuQueryU64( PVM pVM, VMCPUID idCpu, DBGFREG enmReg, uint64_t    *pu64)
    228 {
    229     return VERR_INTERNAL_ERROR;
    230 }
    231 VMMR3DECL(int) DBGFR3RegNmQuery(PVM pVM, VMCPUID idDefCpu, const char *pszReg, PDBGFREGVAL pValue, PDBGFREGVALTYPE penmType)
     205VMMR3DECL(int) DBGFR3RegCpuQueryU8(  PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint8_t     *pu8)
     206{
     207    return VERR_INTERNAL_ERROR;
     208}
     209VMMR3DECL(int) DBGFR3RegCpuQueryU16( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint16_t    *pu16)
     210{
     211    return VERR_INTERNAL_ERROR;
     212}
     213VMMR3DECL(int) DBGFR3RegCpuQueryU32( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint32_t    *pu32)
     214{
     215    return VERR_INTERNAL_ERROR;
     216}
     217VMMR3DECL(int) DBGFR3RegCpuQueryU64( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint64_t    *pu64)
     218{
     219    return VERR_INTERNAL_ERROR;
     220}
     221VMMR3DECL(int) DBGFR3RegNmQuery(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PDBGFREGVAL pValue, PDBGFREGVALTYPE penmType)
    232222{
    233223    if (idDefCpu == 0 || idDefCpu == DBGFREG_HYPER_VMCPUID)
     
    260250    return VERR_DBGF_REGISTER_NOT_FOUND;
    261251}
    262 VMMR3DECL(int) DBGFR3RegPrintf(PVM pVM, VMCPUID idCpu, char *pszBuf, size_t cbBuf, const char *pszFormat, ...)
     252VMMR3DECL(int) DBGFR3RegPrintf(PUVM pUVM, VMCPUID idCpu, char *pszBuf, size_t cbBuf, const char *pszFormat, ...)
    263253{
    264254    return VERR_INTERNAL_ERROR;
     
    268258    return VERR_INTERNAL_ERROR;
    269259}
    270 VMMR3DECL(int) DBGFR3RegNmSet(PVM pVM, VMCPUID idDefCpu, const char *pszReg, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType)
    271 {
    272     return VERR_INTERNAL_ERROR;
    273 }
    274 
    275 VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromPhys(PVM pVM, PDBGFADDRESS pAddress, RTGCPHYS PhysAddr)
    276 {
    277     return NULL;
    278 }
    279 VMMR3DECL(int)  DBGFR3AddrToHostPhys(PVM pVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTHCPHYS pHCPhys)
    280 {
    281     return VERR_INTERNAL_ERROR;
    282 }
    283 VMMR3DECL(int)  DBGFR3AddrToVolatileR3Ptr(PVM pVM, VMCPUID idCpu, PDBGFADDRESS pAddress, bool fReadOnly, void **ppvR3Ptr)
    284 {
    285     return VERR_INTERNAL_ERROR;
    286 }
    287 
    288 VMMR3DECL(int) DBGFR3OSRegister(PVM pVM, PCDBGFOSREG pReg)
    289 {
    290     return VERR_INTERNAL_ERROR;
    291 }
    292 VMMR3DECL(int) DBGFR3OSDetect(PVM pVM, char *pszName, size_t cchName)
    293 {
    294     return VERR_INTERNAL_ERROR;
    295 }
    296 VMMR3DECL(int) DBGFR3OSQueryNameAndVersion(PVM pVM, char *pszName, size_t cchName, char *pszVersion, size_t cchVersion)
    297 {
    298     return VERR_INTERNAL_ERROR;
    299 }
    300 
    301 VMMR3DECL(int) DBGFR3SelQueryInfo(PVM pVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo)
    302 {
    303     return VERR_INTERNAL_ERROR;
    304 }
    305 
    306 VMMR3DECL(CPUMMODE) DBGFR3CpuGetMode(PVM pVM, VMCPUID idCpu)
     260VMMR3DECL(int) DBGFR3RegNmSet(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType)
     261{
     262    return VERR_INTERNAL_ERROR;
     263}
     264
     265VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromPhys(PUVM pUVM, PDBGFADDRESS pAddress, RTGCPHYS PhysAddr)
     266{
     267    return NULL;
     268}
     269VMMR3DECL(int)  DBGFR3AddrToHostPhys(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTHCPHYS pHCPhys)
     270{
     271    return VERR_INTERNAL_ERROR;
     272}
     273VMMR3DECL(int)  DBGFR3AddrToVolatileR3Ptr(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, bool fReadOnly, void **ppvR3Ptr)
     274{
     275    return VERR_INTERNAL_ERROR;
     276}
     277
     278VMMR3DECL(int) DBGFR3OSRegister(PUVM pUVM, PCDBGFOSREG pReg)
     279{
     280    return VERR_INTERNAL_ERROR;
     281}
     282VMMR3DECL(int) DBGFR3OSDetect(PUVM pUVM, char *pszName, size_t cchName)
     283{
     284    return VERR_INTERNAL_ERROR;
     285}
     286VMMR3DECL(int) DBGFR3OSQueryNameAndVersion(PUVM pUVM, char *pszName, size_t cchName, char *pszVersion, size_t cchVersion)
     287{
     288    return VERR_INTERNAL_ERROR;
     289}
     290
     291VMMR3DECL(int) DBGFR3SelQueryInfo(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo)
     292{
     293    return VERR_INTERNAL_ERROR;
     294}
     295
     296VMMR3DECL(CPUMMODE) DBGFR3CpuGetMode(PUVM pUVM, VMCPUID idCpu)
    307297{
    308298    return CPUMMODE_INVALID;
    309299}
    310 
    311 VMMR3DECL(int) DBGFR3CoreWrite(PVM pVM, const char *pszFilename, bool fReplaceFile)
     300VMMR3DECL(VMCPUID) DBGFR3CpuGetCount(PUVM pUVM)
     301{
     302    return 1;
     303}
     304
     305VMMR3DECL(int) DBGFR3CoreWrite(PUVM pUVM, const char *pszFilename, bool fReplaceFile)
    312306{
    313307    return VERR_INTERNAL_ERROR;
     
    382376
    383377
    384 #include <VBox/vmm/mm.h>
    385 
    386 VMMR3DECL(int) MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv)
    387 {
    388     return VERR_INTERNAL_ERROR;
    389 }
    390 
    391 
    392 
    393378
    394379#include <VBox/vmm/pgm.h>
     
    404389}
    405390
    406 VMMR3DECL(int) PGMR3DbgR3Ptr2GCPhys(PVM pVM, RTR3PTR R3Ptr, PRTGCPHYS pGCPhys)
    407 {
    408     return VERR_INTERNAL_ERROR;
    409 }
    410 
    411 VMMR3DECL(int) PGMR3DbgR3Ptr2HCPhys(PVM pVM, RTR3PTR R3Ptr, PRTHCPHYS pHCPhys)
    412 {
    413     return VERR_INTERNAL_ERROR;
    414 }
    415 VMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PVM pVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys)
     391VMMR3DECL(int) PGMR3DbgR3Ptr2GCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTGCPHYS pGCPhys)
     392{
     393    return VERR_INTERNAL_ERROR;
     394}
     395
     396VMMR3DECL(int) PGMR3DbgR3Ptr2HCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTHCPHYS pHCPhys)
     397{
     398    return VERR_INTERNAL_ERROR;
     399}
     400VMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PUVM pUVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys)
    416401{
    417402    return VERR_INTERNAL_ERROR;
     
    421406#include <VBox/vmm/vmm.h>
    422407
    423 VMMDECL(PVMCPU) VMMGetCpuById(PVM pVM, RTCPUID idCpu)
    424 {
    425     return NULL;
    426 }
    427 
     408VMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pUVM, RTCPUID idCpu)
     409{
     410    return NULL;
     411}
     412
     413
     414VMMR3DECL(PVM) VMR3GetVM(PUVM pUVM)
     415{
     416    return NULL;
     417}
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