Expand packet size for lldb compat

This commit is contained in:
Jeffrey Pfau 2014-02-01 05:44:40 -08:00
parent cc9575228c
commit 1541e6e0b0
2 changed files with 3 additions and 4 deletions

View File

@ -125,14 +125,13 @@ static void _readMemory(struct GDBStub* stub, const char* message) {
}
uint32_t address = _hex2int(readAddress, i);
readAddress += i + 1;
// TODO: expand this capacity
for (i = 0; i < 1; ++i) {
for (i = 0; i < 8; ++i) {
if (readAddress[i] == '#') {
break;
}
}
uint32_t size = _hex2int(readAddress, i);
if (size > 4) {
if (size > 512) {
_error(stub, GDB_BAD_ARGUMENTS);
return;
}

View File

@ -3,7 +3,7 @@
#include "debugger.h"
#define GDB_STUB_MAX_LINE 256
#define GDB_STUB_MAX_LINE 1200
enum GDBStubAckState {
GDB_ACK_PENDING = 0,