Skip to content

Commit

Permalink
gdb_server: enable keep-alive packets for qCRC packet
Browse files Browse the repository at this point in the history
Change-Id: Ia384179bb83ad6b70bf385cc9d575e9ec58f76c7
Signed-off-by: Parshintsev Anatoly <anatoly.parshintsev@syntacore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8227
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
  • Loading branch information
aap-sc authored and borneoa committed May 11, 2024
1 parent 126d8a0 commit 22ddf62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/gdb_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,9 @@ static int gdb_query_packet(struct connection *connection,

len = strtoul(separator + 1, NULL, 16);

gdb_connection->output_flag = GDB_OUTPUT_NOTIF;
retval = target_checksum_memory(target, addr, len, &checksum);
gdb_connection->output_flag = GDB_OUTPUT_NO;

if (retval == ERROR_OK) {
snprintf(gdb_reply, 10, "C%8.8" PRIx32 "", checksum);
Expand Down

0 comments on commit 22ddf62

Please sign in to comment.