VirtualBox

Changeset 84660 in vbox


Ignore:
Timestamp:
Jun 3, 2020 11:52:41 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138413
Message:

Debugger: Add support for the Rcmd/monitor packet to access the native VBox debugger, bugref:5217 [doxygen fix]

Location:
trunk/src/VBox/Debugger
Files:
2 edited

Legend:

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

    r84654 r84660  
    19461946        case DBGFEVENT_BREAKPOINT_HYPER:
    19471947        {
     1948            rc = dbgcBpExec(pDbgc, pEvent->u.Bp.iBp);
     1949            switch (rc)
     1950            {
     1951                case VERR_DBGC_BP_NOT_FOUND:
     1952                    rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\ndbgf event: Unknown breakpoint %u! (%s)\n",
     1953                                                 pEvent->u.Bp.iBp, dbgcGetEventCtx(pEvent->enmCtx));
     1954                    break;
     1955
     1956                case VINF_DBGC_BP_NO_COMMAND:
     1957                    rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\ndbgf event: Breakpoint %u! (%s)\n",
     1958                                                 pEvent->u.Bp.iBp, dbgcGetEventCtx(pEvent->enmCtx));
     1959                    break;
     1960
     1961                case VINF_BUFFER_OVERFLOW:
     1962                    rc = pDbgc->CmdHlp.pfnPrintf(&pDbgc->CmdHlp, NULL, "\ndbgf event: Breakpoint %u! Command too long to execute! (%s)\n",
     1963                                                 pEvent->u.Bp.iBp, dbgcGetEventCtx(pEvent->enmCtx));
     1964                    break;
     1965
     1966                default:
     1967                    break;
     1968            }
     1969            if (RT_SUCCESS(rc) && DBGFR3IsHalted(pDbgc->pUVM))
     1970            {
     1971                rc = pDbgc->CmdHlp.pfnExec(&pDbgc->CmdHlp, "r");
     1972
     1973                /* Set the resume flag to ignore the breakpoint when resuming execution. */
     1974                if (   RT_SUCCESS(rc)
     1975                    && pEvent->enmType == DBGFEVENT_BREAKPOINT)
     1976                    rc = pDbgc->CmdHlp.pfnExec(&pDbgc->CmdHlp, "r eflags.rf = 1");
     1977            }
     1978
    19481979            rc = dbgcGdbStubCtxReplySendSigTrap(pThis);
    19491980            break;
     
    21652196
    21662197/**
    2167  * @copydoc{DBGC,pfnOutput}
     2198 * @copydoc DBGC::pfnOutput
    21682199 */
    21692200static DECLCALLBACK(int) dbgcOutputGdb(void *pvUser, const char *pachChars, size_t cbChars)
  • TabularUnified trunk/src/VBox/Debugger/DBGConsole.cpp

    r84654 r84660  
    10901090
    10911091/**
    1092  * @copydoc{DBGC,pfnOutput}
     1092 * @copydoc DBGC::pfnOutput
    10931093 */
    10941094static DECLCALLBACK(int) dbgcOutputNative(void *pvUser, const char *pachChars, size_t cbChars)
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