gdbstub: Only return E22 when reverse GDB is not supported
No need to keep processing the arguments when we know reverse debugging is not available. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20260705215729.62196-8-philmd@oss.qualcomm.com>
Philippe Mathieu-Daudé committed
Jun 26, 2026 at 12:16 UTC
82d97eeda8593aca32756e7ddaf0b8f12d015893
1 file changed
+1
gdbstub/gdbstub.c
+1
@@ -1378,6 +1378,7 @@ static void handle_backward(GArray *params, void *user_ctx)
1378
{
1379
if (!gdb_can_reverse()) {
1380
gdb_put_packet("E22");
1381
+ return;
1382
}
1383
if (params->len == 1) {
1384
switch (gdb_get_cmd_param(params, 0)->opcode) {