VirtualBox

Changeset 8797 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 13, 2008 11:16:03 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30797
Message:

New DBGF interface for digging into the guts of the guest OS kernel.

Location:
trunk/src/VBox/VMM
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/VMM/DBGF.cpp

    r8155 r8797  
    203203     * Terminate the other bits.
    204204     */
     205    dbgfR3OSTerm(pVM);
    205206    dbgfR3InfoTerm(pVM);
    206207    return VINF_SUCCESS;
  • TabularUnified trunk/src/VBox/VMM/DBGFInternal.h

    r8155 r8797  
    169169
    170170/**
     171 * Guest OS digger instance.
     172 */
     173typedef struct DBGFOS
     174{
     175    /** Pointer to the registration record. */
     176    PCDBGFOSREG pReg;
     177    /** Pointer to the next OS we've registered. */
     178    struct DBGFOS *pNext;
     179    /** The instance data (variable size). */
     180    uint8_t abData[16];
     181} DBGFOS;
     182/** Pointer to guest OS digger instance. */
     183typedef DBGFOS *PDBGFOS;
     184/** Pointer to const guest OS digger instance. */
     185typedef DBGFOS const *PCDBGFOS;
     186
     187
     188/**
    171189 * Converts a DBGF pointer into a VM pointer.
    172190 * @returns Pointer to the VM structure the CPUM is part of.
     
    253271     * This is checked and cleared in the \#DB handler. */
    254272    bool                    fSingleSteppingRaw;
     273
     274    /** The current Guest OS digger. */
     275    PDBGFOS                 pCurOS;
     276    /** The head of the Guest OS digger instances. */
     277    PDBGFOS                 pOSHead;
    255278} DBGF;
    256279/** Pointer to DBGF Data. */
     
    260283extern int  dbgfR3InfoInit(PVM pVM);
    261284extern int  dbgfR3InfoTerm(PVM pVM);
     285extern void dbgfR3OSTerm(PVM pVM);
    262286extern int  dbgfR3SymInit(PVM pVM);
    263287extern int  dbgfR3SymTerm(PVM pVM);
  • TabularUnified trunk/src/VBox/VMM/MMHeap.cpp

    r8155 r8797  
    656656        TAG2STR(DBGF_LINE);
    657657        TAG2STR(DBGF_LINE_DUP);
     658        TAG2STR(DBGF_MODULE);
     659        TAG2STR(DBGF_OS);
    658660        TAG2STR(DBGF_STACK);
    659661        TAG2STR(DBGF_SYMBOL);
    660662        TAG2STR(DBGF_SYMBOL_DUP);
    661         TAG2STR(DBGF_MODULE);
    662663
    663664        TAG2STR(EM);
  • TabularUnified trunk/src/VBox/VMM/Makefile.kmk

    r8760 r8797  
    6565        DBGFLog.cpp \
    6666        DBGFMem.cpp \
     67        DBGFOS.cpp \
    6768        DBGFStack.cpp \
    6869        DBGFSym.cpp \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette