Skip to content

Commit

Permalink
libs/libc/gdbstub/lib_gdbstub.c: fix format for trap response
Browse files Browse the repository at this point in the history
fix gdb crash after a few step breakpoints because trap is not correctly reported

Signed-off-by: p-szafonimateusz <[email protected]>
  • Loading branch information
szafonimateusz-mi authored and xiaoxiang781216 committed Jan 3, 2025
1 parent 6b1be7c commit 6f9d0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libc/gdbstub/lib_gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ static int gdb_send_stop(FAR struct gdb_state_s *state, int stopreason,

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)
Expand Down

0 comments on commit 6f9d0c9

Please sign in to comment.