Accept 64-bit addresses in CRC requests.

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>
This commit is contained in:
Tim Newsome 2017-12-26 14:03:42 -08:00 committed by Paul Fertser
parent 79cbeafe9f
commit 2f6f607507
1 changed files with 2 additions and 2 deletions

View File

@ -2415,13 +2415,13 @@ static int gdb_query_packet(struct connection *connection,
char gdb_reply[10]; char gdb_reply[10];
char *separator; char *separator;
uint32_t checksum; uint32_t checksum;
uint32_t addr = 0; target_addr_t addr = 0;
uint32_t len = 0; uint32_t len = 0;
/* skip command character */ /* skip command character */
packet += 5; packet += 5;
addr = strtoul(packet, &separator, 16); addr = strtoull(packet, &separator, 16);
if (*separator != ',') { if (*separator != ',') {
LOG_ERROR("incomplete read memory packet received, dropping connection"); LOG_ERROR("incomplete read memory packet received, dropping connection");