From: Tim Newsome Date: Tue, 26 Dec 2017 22:03:42 +0000 (-0800) Subject: Accept 64-bit addresses in CRC requests. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f6f60750733c50c815ddc84d09c0694f0693af8;p=openocd 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 --- 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");