From 6f9d0c97d2fbdeeb654e5a6fbde0d3c1e73caddb Mon Sep 17 00:00:00 2001 From: p-szafonimateusz Date: Tue, 17 Dec 2024 13:23:42 +0100 Subject: [PATCH] libs/libc/gdbstub/lib_gdbstub.c: fix format for trap response fix gdb crash after a few step breakpoints because trap is not correctly reported Signed-off-by: p-szafonimateusz --- libs/libc/gdbstub/lib_gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/gdbstub/lib_gdbstub.c b/libs/libc/gdbstub/lib_gdbstub.c index ace1307938..ed83a9148e 100644 --- a/libs/libc/gdbstub/lib_gdbstub.c +++ b/libs/libc/gdbstub/lib_gdbstub.c @@ -1609,7 +1609,7 @@ retry: case GDB_STOPREASON_CTRLC: default: - ret = sprintf(state->pkt_buf, "T05thread:%d;", state->pid + 1); + ret = sprintf(state->pkt_buf, "T05thread:%x;", state->pid + 1); } if (ret < 0)