Skip to content

Commit 6f9d0c9

Browse files
szafonimateusz-mixiaoxiang781216
authored andcommitted
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]>
1 parent 6b1be7c commit 6f9d0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libc/gdbstub/lib_gdbstub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ static int gdb_send_stop(FAR struct gdb_state_s *state, int stopreason,
16091609

16101610
case GDB_STOPREASON_CTRLC:
16111611
default:
1612-
ret = sprintf(state->pkt_buf, "T05thread:%d;", state->pid + 1);
1612+
ret = sprintf(state->pkt_buf, "T05thread:%x;", state->pid + 1);
16131613
}
16141614

16151615
if (ret < 0)

0 commit comments

Comments
 (0)