mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 13:38:36 -07:00
gdbstub: assert earlier in handle_read_all_regs
When things go wrong we want to assert on the register that failed to be able to figure out what went wrong. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20250603110204.838117-16-alex.bennee@linaro.org>
This commit is contained in:
parent
46b17eb9e2
commit
3bb69b1953
1 changed files with 1 additions and 1 deletions
|
|
@ -1343,8 +1343,8 @@ static void handle_read_all_regs(GArray *params, void *user_ctx)
|
|||
len += gdb_read_register(gdbserver_state.g_cpu,
|
||||
gdbserver_state.mem_buf,
|
||||
reg_id);
|
||||
}
|
||||
g_assert(len == gdbserver_state.mem_buf->len);
|
||||
}
|
||||
|
||||
gdb_memtohex(gdbserver_state.str_buf, gdbserver_state.mem_buf->data, len);
|
||||
gdb_put_strbuf();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue