VirtualBox

Changeset 24061 in vbox for trunk/include


Ignore:
Timestamp:
Oct 25, 2009 11:54:32 PM (15 years ago)
Author:
vboxsync
Message:

DBGF,DBGPlugInDiggers: Extended DBGFR3MemScan with an alignment restriction. Added DBGFR3CpuGetMode. Started on the WinNT debug digger - can detect the 32-bit kernel, locate the module list and report the nt version.

Location:
trunk/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cpum.h

    r23794 r24061  
    963963VMMDECL(uint32_t)       CPUMGetGuestCPL(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore);
    964964VMMDECL(bool)           CPUMAreHiddenSelRegsValid(PVM pVM);
    965 
    966 /**
    967  * CPU modes.
    968  */
    969 typedef enum CPUMMODE
    970 {
    971     /** The usual invalid zero entry. */
    972     CPUMMODE_INVALID = 0,
    973     /** Real mode. */
    974     CPUMMODE_REAL,
    975     /** Protected mode (32-bit). */
    976     CPUMMODE_PROTECTED,
    977     /** Long mode (64-bit). */
    978     CPUMMODE_LONG
    979 } CPUMMODE;
    980 
    981 VMMDECL(CPUMMODE)  CPUMGetGuestMode(PVMCPU pVCpu);
     965VMMDECL(CPUMMODE)       CPUMGetGuestMode(PVMCPU pVCpu);
    982966
    983967
  • trunk/include/VBox/dbgf.h

    r22112 r24061  
    410410VMMDECL(RTGCUINTREG)    DBGFBpGetDR3(PVM pVM);
    411411VMMDECL(bool)           DBGFIsStepping(PVMCPU pVCpu);
     412
     413
     414
     415VMMR3DECL(CPUMMODE)     DBGFR3CpuGetMode(PVM pVM, VMCPUID idCpu);
    412416
    413417
     
    885889
    886890
    887 VMMR3DECL(int) DBGFR3MemScan(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, const uint8_t *pabNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress);
     891VMMR3DECL(int) DBGFR3MemScan(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, RTGCUINTPTR uAlign,
     892                             const void *pvNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress);
    888893VMMR3DECL(int) DBGFR3MemRead(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, void *pvBuf, size_t cbRead);
    889894VMMR3DECL(int) DBGFR3MemReadString(PVM pVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cbBuf);
  • trunk/include/VBox/pgm.h

    r23460 r24061  
    545545VMMR3DECL(int)      PGMR3DbgReadGCPtr(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb, uint32_t fFlags, size_t *pcbRead);
    546546VMMR3DECL(int)      PGMR3DbgWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, void const *pvSrc, size_t cb, uint32_t fFlags, size_t *pcbWritten);
    547 VMMR3DECL(int)      PGMR3DbgScanPhysical(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cbRange, const uint8_t *pabNeedle, size_t cbNeedle, PRTGCPHYS pGCPhysHit);
    548 VMMR3DECL(int)      PGMR3DbgScanVirtual(PVM pVM, PVMCPU pVCpu, RTGCPTR GCPtr, RTGCPTR cbRange, const uint8_t *pabNeedle, size_t cbNeedle, PRTGCUINTPTR pGCPhysHit);
     547VMMR3DECL(int)      PGMR3DbgScanPhysical(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cbRange, RTGCPHYS GCPhysAlign, const uint8_t *pabNeedle, size_t cbNeedle, PRTGCPHYS pGCPhysHit);
     548VMMR3DECL(int)      PGMR3DbgScanVirtual(PVM pVM, PVMCPU pVCpu, RTGCPTR GCPtr, RTGCPTR cbRange, RTGCPTR GCPtrAlign, const uint8_t *pabNeedle, size_t cbNeedle, PRTGCUINTPTR pGCPhysHit);
    549549/** @} */
    550550#endif /* IN_RING3 */
  • trunk/include/VBox/types.h

    r23598 r24061  
    795795typedef struct CFGMLEAF *PCFGMLEAF;
    796796
     797/**
     798 * CPU modes.
     799 */
     800typedef enum CPUMMODE
     801{
     802    /** The usual invalid zero entry. */
     803    CPUMMODE_INVALID = 0,
     804    /** Real mode. */
     805    CPUMMODE_REAL,
     806    /** Protected mode (32-bit). */
     807    CPUMMODE_PROTECTED,
     808    /** Long mode (64-bit). */
     809    CPUMMODE_LONG
     810} CPUMMODE;
    797811
    798812/** @} */
  • trunk/include/iprt/err.h

    r23693 r24061  
    605605/** Authentication failure. */
    606606#define VERR_AUTHENTICATION_FAILURE         (-89)
     607/** Not a power of two. */
     608#define VERR_NOT_POWER_OF_TWO               (-90)
    607609/** @} */
    608610
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