diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index f0adf1d34..ed17f5046 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2444,7 +2444,7 @@ static int gdb_query_packet(struct connection *connection, /* 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");