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:
parent
43cb0572e9
commit
d012f280c7
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue