Expand packet size for lldb compat
Jeffrey Pfau jeffrey@endrift.com
Sat, 01 Feb 2014 05:44:40 -0800
2 files changed,
3 insertions(+),
4 deletions(-)
M
src/debugger/gdb-stub.c
→
src/debugger/gdb-stub.c
@@ -125,14 +125,13 @@ }
} 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; }
M
src/debugger/gdb-stub.h
→
src/debugger/gdb-stub.h
@@ -3,7 +3,7 @@ #define GDB_STUB_H
#include "debugger.h" -#define GDB_STUB_MAX_LINE 256 +#define GDB_STUB_MAX_LINE 1200 enum GDBStubAckState { GDB_ACK_PENDING = 0,