VirtualBox

Changeset 12877 in vbox for trunk/src/VBox/VMM/DBGF.cpp


Ignore:
Timestamp:
Oct 1, 2008 9:11:15 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37275
Message:

DBGF: Don't linger in DBGFR3Detach.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGF.cpp

    r12875 r12877  
    879879
    880880    /*
    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);
    893885    if (RTSemPongIsSpeaker(&pVM->dbgf.s.PingPong))
    894886    {
    895         enmCmd = dbgfR3SetCmd(pVM, DBGFCMD_DETACH_DEBUGGER);
    896887        rc = RTSemPong(&pVM->dbgf.s.PingPong);
    897888        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));
    904890    }
    905891
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