Changeset 60872 in vbox
- Timestamp:
- May 7, 2016 5:52:54 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107084
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGF.cpp
r60626 r60872 327 327 * @returns True is a debugger have attached. 328 328 * @param pVM The cross context VM structure. 329 * @param pVCpu The cross context per CPU structure. 329 330 * @param enmEvent Event. 330 */ 331 bool dbgfR3WaitForAttach(PVM pVM, DBGFEVENTTYPE enmEvent) 331 * 332 * @thread EMT(pVCpu) 333 */ 334 bool dbgfR3WaitForAttach(PVM pVM, PVMCPU pVCpu, DBGFEVENTTYPE enmEvent) 332 335 { 333 336 /* … … 359 362 } 360 363 364 /* Process priority stuff. */ 365 if ( VM_FF_IS_PENDING(pVM, VM_FF_REQUEST) 366 || VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_REQUEST)) 367 { 368 int rc = VMR3ReqProcessU(pVM->pUVM, VMCPUID_ANY, true /*fPriorityOnly*/); 369 if (rc == VINF_SUCCESS) 370 rc = VMR3ReqProcessU(pVM->pUVM, pVCpu->idCpu, true /*fPriorityOnly*/); 371 if (rc != VINF_SUCCESS) 372 { 373 RTStrmPrintf(g_pStdErr, "[rcReq=%Rrc, ignored!]", rc); 374 RTStrmFlush(g_pStdErr); 375 } 376 } 377 361 378 /* next */ 362 379 if (!(cWait % 10)) … … 481 498 */ 482 499 if ( !pVM->dbgf.s.fAttached 483 && !dbgfR3WaitForAttach(pVM, enmEvent))500 && !dbgfR3WaitForAttach(pVM, pVCpu, enmEvent)) 484 501 { 485 502 Log(("DBGFR3VMMEventSrc: enmEvent=%d - debugger not attached\n", enmEvent)); … … 989 1006 /* 990 1007 * Call the VM, use EMT for serialization. 1008 * 1009 * Using a priority call here so we can actually attach a debugger during 1010 * the countdown in dbgfR3WaitForAttach. 991 1011 */ 992 1012 /** @todo SMP */ 993 return VMR3Req CallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3Attach, 1, pVM);1013 return VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3Attach, 1, pVM); 994 1014 } 995 1015
Note:
See TracChangeset
for help on using the changeset viewer.