VirtualBox

Changeset 2142 in vbox for trunk


Ignore:
Timestamp:
Apr 17, 2007 7:50:47 PM (18 years ago)
Author:
vboxsync
Message:

Some debug stuff for the GIP access double crash.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile

    r2085 r2142  
    185185VBoxDrv_TEMPLATE      = VBOXR0DRV
    186186VBoxDrv_DEFS          = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE
     187VBoxDrv_DEFS         += DEBUG_DARWIN_GIP
    187188VBoxDrv_INCS          = $(VBOX_PATH_SUPPORT)
    188189VBoxDrv_LIBS          = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r2020 r2142  
    23392339        *ppGipR3 = pGip;
    23402340
     2341#ifdef DEBUG_DARWIN_GIP
     2342    OSDBGPRINT(("SUPR0GipMap: returns %d *pHCPhysGid=%lx *ppGip=%p GipMapObjR3\n", rc, (unsigned long)HCPhys, pGip, pSession->GipMapObjR3));
     2343#else
    23412344    dprintf(("SUPR0GipMap: returns %d *pHCPhysGid=%lx *ppGipR3=%p\n", rc, (unsigned long)HCPhys, (void *)(uintptr_t)pGip));
     2345#endif
    23422346    return rc;
    23432347}
     
    23562360    int                     rc = 0;
    23572361    PSUPDRVDEVEXT           pDevExt = pSession->pDevExt;
     2362#ifdef DEBUG_DARWIN_GIP
     2363    OSDBGPRINT(("SUPR0GipUnmap: pSession=%p pGip=%p GipMapObjR3=%p\n",
     2364                pSession,
     2365                pSession->GipMapObjR3 != NIL_RTR0MEMOBJ ? RTR0MemObjAddress(pSession->GipMapObjR3) : NULL,
     2366                pSession->GipMapObjR3));
     2367#else
    23582368    dprintf(("SUPR0GipUnmap: pSession=%p\n", pSession));
     2369#endif
    23592370
    23602371    RTSemFastMutexRequest(pDevExt->mtxGip);
     
    39663977{
    39673978    int rc;
     3979#ifdef DEBUG_DARWIN_GIP
     3980    OSDBGPRINT(("supdrvGipDestroy: pDevExt=%p pGip=%p pGipTimer=%p GipMemObj=%p\n", pDevExt,
     3981                pDevExt->GipMemObj != NIL_RTR0MEMOBJ ? RTR0MemObjAddress(pDevExt->GipMemObj) : NULL,
     3982                pDevExt->pGipTimer, pDevExt->GipMemObj));
     3983#endif
    39683984
    39693985    /*
     
    40304046{
    40314047    unsigned i;
     4048#ifdef DEBUG_DARWIN_GIP
     4049    OSDBGPRINT(("supdrvGipInit: pGip=%p HCPhys=%lx u64NanoTS=%llu uUpdateHz=%d\n", pGip, (long)HCPhys, u64NanoTS, uUpdateHz));
     4050#else
    40324051    dprintf(("supdrvGipInit: pGip=%p HCPhys=%lx u64NanoTS=%llu uUpdateHz=%d\n", pGip, (long)HCPhys, u64NanoTS, uUpdateHz));
     4052#endif
    40334053
    40344054    /*
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r2141 r2142  
    300300    int                 rc;
    301301    PSUPDRVSESSION      pSession;
    302 #ifdef DEBUG
     302#ifdef DEBUG_DARWIN_GIP
    303303    char szName[128];
    304304    szName[0] = '\0';
     
    334334    }
    335335
    336 #if 1
     336#ifdef DEBUG_DARWIN_GIP
     337    OSDBGPRINT(("VBoxSupDrvOpen: pid=%d '%s' pSession=%p rc=%d\n", proc_pid(pProcess), szName, pSession, rc));
     338#else
    337339    dprintf(("VBoxSupDrvOpen: g_DevExt=%p pSession=%p rc=%d pid=%d\n", &g_DevExt, pSession, rc, proc_pid(pProcess)));
    338 #else
    339     OSDBGPRINT(("VBoxSupDrvOpen: pid=%d '%s' pSession=%p rc=%d\n", proc_pid(pProcess), szName, pSession, rc));
    340340#endif
    341341    return VBoxSupDrvErr2DarwinErr(rc);
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