VirtualBox

Changeset 46159 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
May 18, 2013 7:56:08 PM (12 years ago)
Author:
vboxsync
Message:

Patch manager support in the disassembler, making the 'u' command in the debugger always show unpatched instruction and annoate those instructions which have patches associated with them (in any state).

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/dbgf.h

    r46155 r46159  
    886886/** Probably a hypervisor instruction. */
    887887#define DBGF_DISAS_FLAGS_HYPER              RT_BIT(6)
     888/** Disassemble original unpatched bytes (PATM). */
     889#define DBGF_DISAS_FLAGS_UNPATCHED_BYTES    RT_BIT(7)
     890/** Annotate patched instructions. */
     891#define DBGF_DISAS_FLAGS_ANNOTATE_PATCHED   RT_BIT(8)
    888892/** Disassemble in the default mode of the specific context. */
    889893#define DBGF_DISAS_FLAGS_DEFAULT_MODE       UINT32_C(0x00000000)
     
    899903#define DBGF_DISAS_FLAGS_MODE_MASK          UINT32_C(0x70000000)
    900904/** Mask containing the valid flags. */
    901 #define DBGF_DISAS_FLAGS_VALID_MASK         UINT32_C(0x7000007f)
     905#define DBGF_DISAS_FLAGS_VALID_MASK         UINT32_C(0x700001ff)
    902906/** @} */
    903907
  • trunk/include/VBox/vmm/patm.h

    r46134 r46159  
    211211
    212212VMMR3_INT_DECL(void)            PATMR3DbgPopulateAddrSpace(PVM pVM, RTDBGAS hDbgAs);
     213VMMR3_INT_DECL(void)            PATMR3DbgAnnotatePatchedInstruction(PVM pVM, RTRCPTR RCPtr, uint8_t cbInstr,
     214                                                                    char *pszBuf, size_t cbBuf);
    213215
    214216/** @} */
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