VirtualBox

Changeset 104613 in vbox


Ignore:
Timestamp:
May 13, 2024 4:10:34 PM (11 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163155
Message:

Debugger/DBGCGdbRemoteStub.cpp: Error handling fixes, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCGdbRemoteStub.cpp

    r103433 r104613  
    25222522                    else
    25232523                        rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\ndbgf event: %s!", pEvtDesc->pszName);
    2524                     if (pEvent->u.Generic.cArgs <= 1)
    2525                         rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " arg=%#llx\n", pEvent->u.Generic.auArgs[0]);
    2526                     else
     2524                    if (RT_SUCCESS(rc))
    25272525                    {
    2528                         for (uint32_t i = 0; i < pEvent->u.Generic.cArgs; i++)
    2529                             rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " args[%u]=%#llx", i, pEvent->u.Generic.auArgs[i]);
    2530                         rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\n");
     2526                        if (pEvent->u.Generic.cArgs <= 1)
     2527                            rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " arg=%#llx\n", pEvent->u.Generic.auArgs[0]);
     2528                        else
     2529                        {
     2530                            for (uint32_t i = 0; i < pEvent->u.Generic.cArgs; i++)
     2531                                rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, " args[%u]=%#llx", i, pEvent->u.Generic.auArgs[i]);
     2532                            if (RT_SUCCESS(rc))
     2533                                rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\n");
     2534                        }
    25312535                    }
    25322536                }
     
    28512855
    28522856        if (!DBGFR3IsHalted(pThis->Dbgc.pUVM, VMCPUID_ALL))
     2857        {
    28532858            rc = DBGFR3Halt(pThis->Dbgc.pUVM, VMCPUID_ALL);
     2859            if (RT_FAILURE(rc))
     2860                LogRel(("DBGC/Gdb: Failed to halt VM (%Rrc), debugger might behave unexpectedly\n"));
     2861        }
    28542862
    28552863        /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette