This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6f9d0c97d2fbdeeb654e5a6fbde0d3c1e73caddb Author: p-szafonimateusz <[email protected]> AuthorDate: Tue Dec 17 13:23:42 2024 +0100 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 <[email protected]> --- 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)
