Work around a GDB bug (w/r/t packet size)

This commit is contained in:
TuxSH 2017-06-05 21:23:17 +02:00
parent 26dd61e4e6
commit 0ac6db006a

View File

@ -111,7 +111,10 @@ GDB_DECLARE_QUERY_HANDLER(Supported)
"PacketSize=%x;"
"qXfer:features:read+;qXfer:osdata:read+;"
"QStartNoAckMode+;QThreadEvents+;QCatchSyscalls+;"
"vContSupported+;swbreak+", sizeof(ctx->buffer));
"vContSupported+;swbreak+",
GDB_BUF_LEN // should have been sizeof(ctx->buffer) but GDB memory functions are bugged
);
}
GDB_DECLARE_QUERY_HANDLER(StartNoAckMode)