Changeset 31862 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Aug 23, 2010 2:31:44 PM (14 years ago)
- 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 260 260 261 261 /* 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. 263 263 */ 264 264 cb += sizeof(VBOXSOLMAPINFO); … … 1070 1070 * @return VBox error code. 1071 1071 */ 1072 static int ResumeAllThreads(PVBOXPROCESS pVBoxProc)1072 static int rtCoreDumperResumeThreads(PVBOXPROCESS pVBoxProc) 1073 1073 { 1074 1074 AssertReturn(pVBoxProc, VERR_INVALID_POINTER); … … 1124 1124 * @return VBox error code. 1125 1125 */ 1126 static int SuspendAllThreads(PVBOXPROCESS pVBoxProc)1126 static int rtCoreDumperSuspendThreads(PVBOXPROCESS pVBoxProc) 1127 1127 { 1128 1128 char szCurThread[128]; … … 1170 1170 else 1171 1171 { 1172 CORELOGRELSYS((CORELOG_NAME "Suspend AllThreads: Failed to open %s cTries=%d\n", szPath, cTries));1172 CORELOGRELSYS((CORELOG_NAME "SuspendThreads: Failed to open %s cTries=%d\n", szPath, cTries)); 1173 1173 rc = VERR_READ_ERROR; 1174 1174 break; … … 1177 1177 1178 1178 if (RT_SUCCESS(rc)) 1179 CORELOG((CORELOG_NAME "S topped %u threads successfully with %u tries\n", cThreads, cTries));1179 CORELOG((CORELOG_NAME "SuspendThreads: Stopped %u threads successfully with %u tries\n", cThreads, cTries)); 1180 1180 1181 1181 return rc; … … 1613 1613 * Create the core file. 1614 1614 */ 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); 1617 1616 if (RT_FAILURE(rc)) 1618 1617 { 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)); 1620 1619 goto WriteCoreDone; 1621 1620 } … … 1747 1746 } 1748 1747 1749 ResumeAllThreads(pVBoxProc);1748 rtCoreDumperResumeThreads(pVBoxProc); 1750 1749 return rc; 1751 1750 } … … 1807 1806 * Quiesce the process. 1808 1807 */ 1809 int rc = SuspendAllThreads(pVBoxProc);1808 int rc = rtCoreDumperSuspendThreads(pVBoxProc); 1810 1809 if (RT_SUCCESS(rc)) 1811 1810 { … … 1878 1877 * Resume threads on failure. 1879 1878 */ 1880 ResumeAllThreads(pVBoxProc);1879 rtCoreDumperResumeThreads(pVBoxProc); 1881 1880 } 1882 1881 else -
trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.h
r31860 r31862 89 89 { 90 90 enmOldEra = 0x01d, /* old */ 91 enmNewEra = 0x5c1 51 /* sci-fi */91 enmNewEra = 0x5c1f1 /* sci-fi */ 92 92 } VBOXSOLCORETYPE; 93 93
Note:
See TracChangeset
for help on using the changeset viewer.