From 0ac6db006adbd5d72fe07e6e540b454d1fe975a4 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Mon, 5 Jun 2017 21:23:17 +0200 Subject: [PATCH] Work around a GDB bug (w/r/t packet size) --- sysmodules/rosalina/source/gdb/query.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sysmodules/rosalina/source/gdb/query.c b/sysmodules/rosalina/source/gdb/query.c index f41e663..af2a79c 100644 --- a/sysmodules/rosalina/source/gdb/query.c +++ b/sysmodules/rosalina/source/gdb/query.c @@ -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)