Changeset 84628 in vbox
- Timestamp:
- Jun 1, 2020 8:23:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCGdbRemoteStub.cpp
r84627 r84628 109 109 size_t cbPktBufMax; 110 110 /** Current offset into the packet buffer. */ 111 uint32_toffPktBuf;111 size_t offPktBuf; 112 112 /** The size of the packet (minus the start, end characters and the checksum). */ 113 113 uint32_t cbPkt; … … 293 293 * @returns Status code. 294 294 * @param pThis The GDB stub context. 295 * @param p bReplyData The reply data to send.295 * @param pvReplyData The reply data to send. 296 296 * @param cbReplyData Size of the reply data in bytes. 297 297 */ … … 330 330 * @returns Status code. 331 331 * @param pThis The GDB stub context. 332 * @param p bReplyPkt The reply packet to send.332 * @param pvReplyPkt The reply packet to send. 333 333 * @param cbReplyPkt Size of the reply packet in bytes. 334 334 */ … … 604 604 605 605 /** 606 * @copydoc {FNGDBSTUBQPKTPROC}606 * @copydoc FNGDBSTUBQPKTPROC 607 607 */ 608 608 static int dbgcGdbStubCtxPktProcessFeatXmlRegs(PGDBSTUBCTX pThis, const uint8_t *pbVal, size_t cbVal) … … 784 784 785 785 /** 786 * Sends the reply to a 'qXfer: <object>:read:...' request.786 * Sends the reply to a 'qXfer:object:read:...' request. 787 787 * 788 788 * @returns Status code. … … 810 810 } 811 811 else 812 rc = dbgcGdbStubCtxReplySendErr (pThis, VERR_NO_MEMORY);812 rc = dbgcGdbStubCtxReplySendErrSts(pThis, VERR_NO_MEMORY); 813 813 } 814 814 else if (offRead == cbObj) … … 822 822 823 823 /** 824 * Parses the annex:offset,length part of a 'qXfer: <object>:read:...' request.825 * 826 * @returns Status code. 827 * @param pbArgs Start of the arguments beginning with <annex>.824 * Parses the annex:offset,length part of a 'qXfer:object:read:...' request. 825 * 826 * @returns Status code. 827 * @param pbArgs Start of the arguments beginning with annex. 828 828 * @param cbArgs Number of bytes remaining for the arguments. 829 829 * @param ppchAnnex Where to store the pointer to the beginning of the annex on success. 830 830 * @param pcchAnnex Where to store the number of characters for the annex on success. 831 * @param poff 832 * @param pcb 831 * @param poffRead Where to store the offset on success. 832 * @param pcbRead Where to store the length on success. 833 833 */ 834 834 static int dbgcGdbStubCtxPktProcessQueryXferParseAnnexOffLen(const uint8_t *pbArgs, size_t cbArgs, const char **ppchAnnex, size_t *pcchAnnex, … … 1456 1456 { 1457 1457 size_t cbProcessed = pbPktSep - &pThis->pbPktBuf[2]; 1458 size_t cbRead = 0;1458 uint64_t cbRead = 0; 1459 1459 rc = dbgcGdbStubCtxParseHexStringAsInteger(pbPktSep + 1, pThis->cbPkt - 1 - cbProcessed - 1, &cbRead, GDBSTUB_PKT_END, NULL); 1460 1460 if (RT_SUCCESS(rc)) … … 1516 1516 { 1517 1517 size_t cbProcessed = pbPktSep - &pThis->pbPktBuf[2]; 1518 size_t cbWrite = 0;1518 uint64_t cbWrite = 0; 1519 1519 rc = dbgcGdbStubCtxParseHexStringAsInteger(pbPktSep + 1, pThis->cbPkt - 1 - cbProcessed - 1, &cbWrite, ':', &pbPktSep); 1520 1520 if (RT_SUCCESS(rc)) … … 2166 2166 * 2167 2167 * @returns VBox status code. 2168 * @param p Dbgc Pointer to the debugger console instance data.2168 * @param pThis Pointer to the GDB stub context. 2169 2169 */ 2170 2170 int dbgcGdbStubRun(PGDBSTUBCTX pThis)
Note:
See TracChangeset
for help on using the changeset viewer.