VirtualBox

Changeset 96865 in vbox


Ignore:
Timestamp:
Sep 26, 2022 2:45:32 PM (2 years ago)
Author:
vboxsync
Message:

Debugger: Some changes floating around, added a UDP I/O provider to be used for GDB and the WinDbg/Kd backend, bugref:1098

Location:
trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dbg.h

    r96407 r96865  
    11691169
    11701170    /**
     1171     * Marks the beginning of a new packet being sent - optional.
     1172     *
     1173     * @returns VBox status code.
     1174     * @param   pIo         Pointer to the I/O structure supplied by
     1175     *                      the I/O provider. The backend can use this to find it's instance data.
     1176     * @param   cbPktHint   Size of the packet in bytes, serves as a hint for the I/O provider to arrange buffers.
     1177     *                      Give 0 if size is unknown upfront.
     1178     */
     1179    DECLCALLBACKMEMBER(int, pfnPktBegin, (PCDBGCIO pIo, size_t cbPktHint));
     1180
     1181    /**
     1182     * Marks the end of the packet - optional.
     1183     *
     1184     * @returns VBox status code.
     1185     * @param   pIo         Pointer to the I/O structure supplied by
     1186     *                      the I/O provider. The backend can use this to find it's instance data.
     1187     *
     1188     * @note Some I/O providers might decide to send data only when this is called not in the
     1189     *       DBGCIO::pfnWrite callback.
     1190     */
     1191    DECLCALLBACKMEMBER(int, pfnPktEnd, (PCDBGCIO pIo));
     1192
     1193    /**
    11711194     * Ready / busy notification.
    11721195     *
  • trunk/src/VBox/Debugger/DBGCIo.cpp

    r96407 r96865  
    133133{
    134134    &g_DbgcIoProvTcp,
     135    &g_DbgcIoProvUdp,
    135136    &g_DbgcIoProvIpc
    136137};
  • trunk/src/VBox/Debugger/DBGCIoProvInternal.h

    r96407 r96865  
    109109*******************************************************************************/
    110110extern const DBGCIOPROVREG    g_DbgcIoProvTcp;
     111extern const DBGCIOPROVREG    g_DbgcIoProvUdp;
    111112extern const DBGCIOPROVREG    g_DbgcIoProvIpc;
    112113
  • trunk/src/VBox/Debugger/DBGCIoProvIpc.cpp

    r96407 r96865  
    200200            pIpcCon->Io.pfnRead     = dbgcIoProvIpcIoRead;
    201201            pIpcCon->Io.pfnWrite    = dbgcIoProvIpcIoWrite;
     202            pIpcCon->Io.pfnPktBegin = NULL;
     203            pIpcCon->Io.pfnPktEnd   = NULL;
    202204            pIpcCon->Io.pfnSetReady = dbgcIoProvIpcIoSetReady;
    203205            pIpcCon->hSession       = hSession;
  • trunk/src/VBox/Debugger/DBGCIoProvTcp.cpp

    r96407 r96865  
    211211            pTcpCon->Io.pfnRead     = dbgcIoProvTcpIoRead;
    212212            pTcpCon->Io.pfnWrite    = dbgcIoProvTcpIoWrite;
     213            pTcpCon->Io.pfnPktBegin = NULL;
     214            pTcpCon->Io.pfnPktEnd   = NULL;
    213215            pTcpCon->Io.pfnSetReady = dbgcIoProvTcpIoSetReady;
    214216            pTcpCon->hSock          = hSockCon;
  • trunk/src/VBox/Debugger/Makefile.kmk

    r96407 r96865  
    6363        DBGCIo.cpp \
    6464        DBGCIoProvTcp.cpp \
     65        DBGCIoProvUdp.cpp \
    6566        DBGCIoProvIpc.cpp \
    6667        DBGCScreenAscii.cpp
  • trunk/src/VBox/Debugger/testcase/tstDBGCParser.cpp

    r96407 r96865  
    6060    tstDBGCBackRead,
    6161    tstDBGCBackWrite,
     62    NULL, /**pfnPktBegin*/
     63    NULL, /**pfnPktEnd*/
    6264    tstDBGCBackSetReady
    6365};
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