mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 22:08:35 +08:00
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 <p-szafonimateusz@xiaomi.com>
This commit is contained in:
parent
6b1be7c66c
commit
6f9d0c97d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue