From 3192471742b11467a8fe048ea371a0d60ef7d2c2 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Sat, 9 Mar 2024 12:19:55 +1300 Subject: [PATCH] Intentionally ignore all 'j' related packets for now Producing JSON output is a bit of a pain so let's just avoid this as long as we can. --- src/GdbServerConnection.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/GdbServerConnection.cc b/src/GdbServerConnection.cc index eb4524fcbe8..702dce2bbad 100644 --- a/src/GdbServerConnection.cc +++ b/src/GdbServerConnection.cc @@ -1330,6 +1330,12 @@ bool GdbServerConnection::process_packet() { ret = true; break; + case 'j': + // Prefer to avoid implementing any JSON-formatted-output + // packets unless we have to + write_packet(""); + ret = false; + break; case 'k': LOG(info) << "debugger requests kill, exiting"; write_packet("OK");