From 2f6f60750733c50c815ddc84d09c0694f0693af8 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 26 Dec 2017 14:03:42 -0800 Subject: [PATCH] Accept 64-bit addresses in CRC requests. Change-Id: I6a3e97ae8ffb4dc2ca1197a8102cb9ba34de0a1e Signed-off-by: Tim Newsome Reviewed-on: http://openocd.zylin.com/4317 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- src/server/gdb_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index b2d13d72..f90f12bb 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2415,13 +2415,13 @@ static int gdb_query_packet(struct connection *connection, char gdb_reply[10]; char *separator; uint32_t checksum; - uint32_t addr = 0; + target_addr_t addr = 0; uint32_t len = 0; /* skip command character */ packet += 5; - addr = strtoul(packet, &separator, 16); + addr = strtoull(packet, &separator, 16); if (*separator != ',') { LOG_ERROR("incomplete read memory packet received, dropping connection"); -- 2.39.5