VirtualBox

Changeset 41573 in vbox for trunk/include


Ignore:
Timestamp:
Jun 4, 2012 9:13:23 PM (13 years ago)
Author:
vboxsync
Message:

DBGC: Working on making STRING the inflexible type and SYMBOL the flexible one.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r41565 r41573  
    109109    /** Physical HC pointer. */
    110110    DBGCVAR_TYPE_HC_PHYS,
     111    /** Number. */
     112    DBGCVAR_TYPE_NUMBER,
    111113    /** String. */
    112114    DBGCVAR_TYPE_STRING,
    113     /** Number. */
    114     DBGCVAR_TYPE_NUMBER,
    115     /** Symbol.
    116      * @todo drop this   */
     115    /** Symbol. */
    117116    DBGCVAR_TYPE_SYMBOL,
    118117    /** Special type used when querying symbols. */
     
    322321
    323322/**
     323 * Macro for initializing a DBGC variable with a symbol.
     324 */
     325#define DBGCVAR_INIT_SYMBOL(pVar, a_pszSymbol) \
     326        do { \
     327            DBGCVAR_INIT(pVar); \
     328            (pVar)->enmType      = DBGCVAR_TYPE_SYMBOL; \
     329            (pVar)->enmRangeType = DBGCVAR_RANGE_BYTES; \
     330            (pVar)->u.pszString  = (a_pszSymbol); \
     331            (pVar)->u64Range     = strlen(a_pszSymbol); \
     332        } while (0)
     333
     334
     335/**
    324336 * Macro for setting the range of a DBGC variable.
    325337 * @param   pVar            The variable.
  • trunk/include/VBox/err.h

    r41561 r41573  
    21132113/** Generic debugger command failure. */
    21142114#define VERR_DBGC_COMMAND_FAILED                    (-5407)
     2115/** Logic bug in the DBGC code.. */
     2116#define VERR_DBGC_IPE                               (-5408)
    21152117
    21162118/** The lowest parse status code.   */
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