VirtualBox

Changeset 9271 in vbox for trunk/include


Ignore:
Timestamp:
May 31, 2008 6:11:10 PM (17 years ago)
Author:
vboxsync
Message:

Implemented symbol lookup, strict / relaxed assembly, and relative (+/-off) branch formatting.

File:
1 edited

Legend:

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

    r9266 r9271  
    645645 * @param   pvUser      The user argument.
    646646 */
    647 typedef DECLCALLBACK(int) FNDISGETSYMBOL(uint32_t u32Sel, RTUINTPTR uAddress, char *pszBuf, size_t cchBuf, RTINTPTR *poff);
     647typedef DECLCALLBACK(int) FNDISGETSYMBOL(uint32_t u32Sel, RTUINTPTR uAddress, char *pszBuf, size_t cchBuf, RTINTPTR *poff, void *pvUser);
    648648/** Pointer to a FNDISGETSYMBOL(). */
    649649typedef FNDISGETSYMBOL *PFNDISGETSYMBOL;
     
    696696 * and put the target address in parenthesis. */
    697697#define DIS_FMT_FLAGS_RELATIVE_BRANCH       RT_BIT_32(8)
     698/** Strict assembly. The assembly should, when ever possible, make the
     699 * assembler reproduce the exact same binary. (Refers to the yasm
     700 * strict keyword.) */
     701#define DIS_FMT_FLAGS_STRICT                RT_BIT_32(9)
    698702/** Checks if the given flags are a valid combination. */
    699703#define DIS_FMT_FLAGS_IS_VALID(fFlags) \
    700     (   !((fFlags) & ~UINT32_C(0x000001ff)) \
     704    (   !((fFlags) & ~UINT32_C(0x000003ff)) \
    701705     && ((fFlags) & (DIS_FMT_FLAGS_ADDR_RIGHT  | DIS_FMT_FLAGS_ADDR_LEFT))  != (DIS_FMT_FLAGS_ADDR_RIGHT  | DIS_FMT_FLAGS_ADDR_LEFT) \
    702706     && (   !((fFlags) & DIS_FMT_FLAGS_ADDR_COMMENT) \
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