Accept 64-bit addresses in CRC requests. 17/4317/3
authorTim Newsome <tim@sifive.com>
Tue, 26 Dec 2017 22:03:42 +0000 (14:03 -0800)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 13 Jan 2018 09:52:13 +0000 (09:52 +0000)
Change-Id: I6a3e97ae8ffb4dc2ca1197a8102cb9ba34de0a1e
Signed-off-by: Tim Newsome <tim@sifive.com>
Reviewed-on: http://openocd.zylin.com/4317
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/server/gdb_server.c

index b2d13d7..f90f12b 100644 (file)
@@ -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");