Changeset 12877 in vbox for trunk/src/VBox/VMM/DBGF.cpp
- Timestamp:
- Oct 1, 2008 9:11:15 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 37275
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/DBGF.cpp
r12875 r12877 879 879 880 880 /* 881 * If we're in the wrong mode, wait a wee bit first to avoid speaking 882 * out of turn and racing EMT. We shouldn't linger too long though, 883 * because we might be in a screwed up state. 884 */ 885 if (RTSemPongShouldWait(&pVM->dbgf.s.PingPong)) 886 RTSemPongWait(&pVM->dbgf.s.PingPong, 5000); 887 888 /* 889 * Send detach command. 890 * This may or may not be in response to an EMT termination event. 891 */ 892 DBGFCMD enmCmd; 881 * Try send the detach command. 882 * Keep in mind that we might be racing EMT, so, be extra careful. 883 */ 884 DBGFCMD enmCmd = dbgfR3SetCmd(pVM, DBGFCMD_DETACH_DEBUGGER); 893 885 if (RTSemPongIsSpeaker(&pVM->dbgf.s.PingPong)) 894 886 { 895 enmCmd = dbgfR3SetCmd(pVM, DBGFCMD_DETACH_DEBUGGER);896 887 rc = RTSemPong(&pVM->dbgf.s.PingPong); 897 888 AssertMsgRCReturn(rc, ("Failed to signal emulation thread. rc=%Rrc\n", rc), rc); 898 Log(("DBGFR3Detach: enmCmd=%d (pong -> ping)\n", enmCmd)); 899 } 900 else 901 { 902 enmCmd = dbgfR3SetCmd(pVM, DBGFCMD_DETACH_DEBUGGER); 903 LogRel(("DBGFR3Detach: enmCmd=%d (ping)\n", enmCmd)); 889 LogRel(("DBGFR3Detach: enmCmd=%d (pong -> ping)\n", enmCmd)); 904 890 } 905 891
Note:
See TracChangeset
for help on using the changeset viewer.