Changeset 32202 in vbox for trunk/src/VBox
- Timestamp:
- Sep 2, 2010 2:02:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp
r32197 r32202 1092 1092 NOREF(pVBoxCore); 1093 1093 1094 CORELOG((CORELOG_NAME ":suspendThread %d\n", (lwpid_t)pThreadInfo->pr_lwpid)); 1095 1094 1096 lwpsinfo_t *pThreadInfo = (lwpsinfo_t *)pvThreadInfo; 1095 CORELOGRELSYS((CORELOG_NAME ":suspendThread %d\n", (lwpid_t)pThreadInfo->pr_lwpid));1096 1097 if ((lwpid_t)pThreadInfo->pr_lwpid != pVBoxCore->VBoxProc.hCurThread) 1097 1098 _lwp_suspend(pThreadInfo->pr_lwpid); … … 1112 1113 AssertPtrReturn(pvThreadInfo, VERR_INVALID_POINTER); 1113 1114 NOREF(pVBoxCore); 1115 1116 CORELOG((CORELOG_NAME ":resumeThread %d\n", (lwpid_t)pThreadInfo->pr_lwpid)); 1114 1117 1115 1118 lwpsinfo_t *pThreadInfo = (lwpsinfo_t *)pvThreadInfo; … … 1372 1375 ElfNoteHdr.achName[2] = 'R'; 1373 1376 ElfNoteHdr.achName[3] = 'E'; 1377 1378 static const char s_achPad[3] = { 0, 0, 0 }; 1379 size_t cbAlign = RT_ALIGN_Z(cb, 4); 1374 1380 ElfNoteHdr.Hdr.n_namesz = 5; 1375 1381 ElfNoteHdr.Hdr.n_type = Type; 1376 ElfNoteHdr.Hdr.n_descsz = RT_ALIGN_Z(cb, 4);1382 ElfNoteHdr.Hdr.n_descsz = cbAlign; 1377 1383 1378 1384 /* … … 1381 1387 rc = pVBoxCore->pfnWriter(pVBoxCore->hCoreFile, &ElfNoteHdr, sizeof(ElfNoteHdr)); 1382 1388 if (RT_SUCCESS(rc)) 1383 rc = pVBoxCore->pfnWriter(pVBoxCore->hCoreFile, pcv, ElfNoteHdr.Hdr.n_descsz); 1389 { 1390 rc = pVBoxCore->pfnWriter(pVBoxCore->hCoreFile, pcv, cb); 1391 if (RT_SUCCESS(rc)) 1392 { 1393 if (cbAlign > cb) 1394 rc = pVBoxCore->pfnWriter(pVBoxCore->hCoreFile, s_achPad, cbAlign - cb); 1395 } 1396 } 1384 1397 1385 1398 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.