gdbstub: Add v-packet handling function

Add `gdb_v_packet` function as a central location to handle processing
of v-packets.

Signed-off-by: Robert Zieba <robertzieba@google.com>
This commit is contained in:
Robert Zieba 2024-03-20 16:29:39 -06:00 committed by Fabio Baltieri
parent 43cb0572e9
commit d012f280c7

View file

@ -607,6 +607,11 @@ static void gdb_q_packet(uint8_t *buf, size_t len, enum gdb_loop_state *next_sta
gdb_send_packet(NULL, 0);
}
static void gdb_v_packet(uint8_t *buf, size_t len, enum gdb_loop_state *next_state)
{
gdb_send_packet(NULL, 0);
}
/**
* Synchronously communicate with gdb on the host
*/
@ -838,6 +843,11 @@ int z_gdb_main_loop(struct gdb_ctx *ctx)
gdb_q_packet(buf, sizeof(buf), &state);
break;
/* v packets */
case 'v':
gdb_v_packet(buf, sizeof(buf), &state);
break;
/*
* Not supported action
*/