VirtualBox

Changeset 31862 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 23, 2010 2:31:44 PM (14 years ago)
Author:
vboxsync
Message:

RTCoreDumper: cleanup.

Location:
trunk/src/VBox/Runtime/r3/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp

    r31860 r31862  
    260260
    261261    /*
    262      * Make Room for our own mapping accountant entry which will also be included in the core.
     262     * Make room for our own mapping accountant entry which will also be included in the core.
    263263     */
    264264    cb += sizeof(VBOXSOLMAPINFO);
     
    10701070 * @return VBox error code.
    10711071 */
    1072 static int ResumeAllThreads(PVBOXPROCESS pVBoxProc)
     1072static int rtCoreDumperResumeThreads(PVBOXPROCESS pVBoxProc)
    10731073{
    10741074    AssertReturn(pVBoxProc, VERR_INVALID_POINTER);
     
    11241124 * @return VBox error code.
    11251125 */
    1126 static int SuspendAllThreads(PVBOXPROCESS pVBoxProc)
     1126static int rtCoreDumperSuspendThreads(PVBOXPROCESS pVBoxProc)
    11271127{
    11281128    char szCurThread[128];
     
    11701170        else
    11711171        {
    1172             CORELOGRELSYS((CORELOG_NAME "SuspendAllThreads: Failed to open %s cTries=%d\n", szPath, cTries));
     1172            CORELOGRELSYS((CORELOG_NAME "SuspendThreads: Failed to open %s cTries=%d\n", szPath, cTries));
    11731173            rc = VERR_READ_ERROR;
    11741174            break;
     
    11771177
    11781178    if (RT_SUCCESS(rc))
    1179         CORELOG((CORELOG_NAME "Stopped %u threads successfully with %u tries\n", cThreads, cTries));
     1179        CORELOG((CORELOG_NAME "SuspendThreads: Stopped %u threads successfully with %u tries\n", cThreads, cTries));
    11801180
    11811181    return rc;
     
    16131613     * Create the core file.
    16141614     */
    1615     RTStrPrintf(szPath, sizeof(szPath), "/export/home/ram/vbox/out/solaris.amd64/release/bin/%s", pVBoxCore->szCorePath, pVBoxCore->VBoxProc.Process); /* @todo fix this */
    1616     rc = RTFileOpen(&pVBoxCore->hCoreFile, szPath, RTFILE_O_OPEN_CREATE | RTFILE_O_TRUNCATE | RTFILE_O_READWRITE | RTFILE_O_DENY_ALL);
     1615    rc = RTFileOpen(&pVBoxCore->hCoreFile, pVBoxCore->szCorePath, RTFILE_O_OPEN_CREATE | RTFILE_O_TRUNCATE | RTFILE_O_READWRITE | RTFILE_O_DENY_ALL);
    16171616    if (RT_FAILURE(rc))
    16181617    {
    1619         CORELOGRELSYS((CORELOG_NAME "WriteCore: failed to open %s. rc=%Rrc\n", szPath, rc));
     1618        CORELOGRELSYS((CORELOG_NAME "WriteCore: failed to open %s. rc=%Rrc\n", pVBoxCore->szCorePath, rc));
    16201619        goto WriteCoreDone;
    16211620    }
     
    17471746    }
    17481747
    1749     ResumeAllThreads(pVBoxProc);
     1748    rtCoreDumperResumeThreads(pVBoxProc);
    17501749    return rc;
    17511750}
     
    18071806     * Quiesce the process.
    18081807     */
    1809     int rc = SuspendAllThreads(pVBoxProc);
     1808    int rc = rtCoreDumperSuspendThreads(pVBoxProc);
    18101809    if (RT_SUCCESS(rc))
    18111810    {
     
    18781877         * Resume threads on failure.
    18791878         */
    1880         ResumeAllThreads(pVBoxProc);
     1879        rtCoreDumperResumeThreads(pVBoxProc);
    18811880    }
    18821881    else
  • trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.h

    r31860 r31862  
    8989{
    9090    enmOldEra       = 0x01d,        /* old */
    91     enmNewEra       = 0x5c151       /* sci-fi */
     91    enmNewEra       = 0x5c1f1       /* sci-fi */
    9292} VBOXSOLCORETYPE;
    9393
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