From 14d38466636690c2108746b786c23b8a0b8f078f Mon Sep 17 00:00:00 2001 From: dragonmux Date: Fri, 24 Jun 2022 21:21:33 -0400 Subject: [PATCH] gdb_main: Fix a formatting bug that breaks, among other things, breakpoints --- src/gdb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gdb_main.c b/src/gdb_main.c index 56c49b0..0713dae 100644 --- a/src/gdb_main.c +++ b/src/gdb_main.c @@ -602,7 +602,7 @@ handle_z_packet(char *packet, int plen) uint32_t addr; int ret; - sscanf(packet, "%*[zZ]%d,%08" PRIX32 ",%d", &type, &addr, &len); + sscanf(packet, "%*[zZ]%d,%08" PRIx32 ",%d", &type, &addr, &len); if(set) ret = target_breakwatch_set(cur_target, type, addr, len); else