gdb: e2k: Add stub for read tags.

This commit is contained in:
Denis Drakhnia 2020-11-24 16:37:31 +02:00 committed by Denis Drakhnia
parent fe6df81676
commit e16feffa39

View File

@ -2211,6 +2211,12 @@ static void handle_query_supported(GArray *params, void *user_ctx)
gdbserver_state.multiprocess = true;
}
#ifdef TARGET_E2K
// TODO: qXfer:tags:write+
// TODO: qXfer:packed_tags:read+
g_string_append(gdbserver_state.str_buf, ";qXfer:tags:read+");
#endif
g_string_append(gdbserver_state.str_buf, ";vContSupported+;multiprocess+");
put_strbuf();
}
@ -2352,6 +2358,20 @@ static void handle_set_qemu_phy_mem_mode(GArray *params, void *user_ctx)
}
#endif
#ifdef TARGET_E2K
static void handle_query_e2k_tags_read(GdbCmdContext *gdb_ctx, void *user_ctx)
{
// TODO: handle_query_e2k_tags_read
g_string_assign(gdbserver_state.str_buf, "l");
g_string_append_c(gdbserver_state.str_buf, 0);
g_string_append_c(gdbserver_state.str_buf, 0);
put_packet_binary(gdbserver_state.str_buf->str,
gdbserver_state.str_buf->len, true);
}
#endif
static const GdbCmdParseEntry gdb_gen_query_set_common_table[] = {
/* Order is important if has same prefix */
{
@ -2446,6 +2466,14 @@ static const GdbCmdParseEntry gdb_gen_query_table[] = {
.cmd = "qemu.PhyMemMode",
},
#endif
#ifdef TARGET_E2K
{
.handler = handle_query_e2k_tags_read,
.cmd = "Xfer:tags:read::",
.cmd_startswith = 1,
.schema = "L,l0",
},
#endif
};
static const GdbCmdParseEntry gdb_gen_set_table[] = {