Print allt he GDB messages back

This commit is contained in:
Palmer Dabbelt 2018-05-30 02:53:52 -07:00
parent ec42c4300e
commit 4fc0e7ac0d
1 changed files with 5 additions and 0 deletions

View File

@ -480,6 +480,11 @@ int gdb_put_packet(struct connection *connection, char *buffer, int len)
int retval = gdb_put_packet_inner(connection, buffer, len);
gdb_con->busy = false;
char *msg = malloc(len + 1);
memset(msg, '\0', len+1);
strncpy(msg, buffer, len);
LOG_DEBUG("msg: %s", msg);
/* we sent some data, reset timer for keep alive messages */
kept_alive();