all repos — mgba @ 1541e6e0b060637cff5ff882fa24956f88dc3a35

mGBA Game Boy Advance Emulator

Expand packet size for lldb compat
Jeffrey Pfau jeffrey@endrift.com
Sat, 01 Feb 2014 05:44:40 -0800
commit

1541e6e0b060637cff5ff882fa24956f88dc3a35

parent

cc9575228c259bbaf71c403ded1d557b27e4d28e

2 files changed, 3 insertions(+), 4 deletions(-)

jump to
M src/debugger/gdb-stub.csrc/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.hsrc/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,