Message ID | 20250319182255.3096731-9-alex.bennee@linaro.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | gdbstub: conversion to runtime endianess helpers | expand |
On 19/3/25 19:22, Alex Bennée wrote: > When things go wrong we want to assert on the register that failed to > be able to figure out what went wrong. > > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > --- > gdbstub/gdbstub.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 3d7b1028e4..8561d9d527 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -1350,8 +1350,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); } - g_assert(len == gdbserver_state.mem_buf->len); gdb_memtohex(gdbserver_state.str_buf, gdbserver_state.mem_buf->data, len); gdb_put_strbuf();
When things go wrong we want to assert on the register that failed to be able to figure out what went wrong. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- gdbstub/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)