mirror of https://github.com/mgba-emu/mgba.git
Expand packet size for lldb compat
This commit is contained in:
parent
cc9575228c
commit
1541e6e0b0
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue