[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 7/8] gdbstub: tidy away reverse debugging check into funct
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v1 7/8] gdbstub: tidy away reverse debugging check into function |
Date: |
Tue, 25 May 2021 05:57:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
Hi Alex,
On 5/20/21 7:43 PM, Alex Bennée wrote:
> In theory we don't need an actual record/replay to enact reverse
> debugging on a purely deterministic system (i.e one with no external
> inputs running under icount). Tidy away the logic into a little
> function.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> gdbstub.c | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/gdbstub.c b/gdbstub.c
> index 84ce770a04..52bde5bdc9 100644
> --- a/gdbstub.c
> +++ b/gdbstub.c
> @@ -465,6 +465,15 @@ int use_gdb_syscalls(void)
> return gdb_syscall_mode == GDB_SYS_ENABLED;
> }
>
> +static bool stub_can_reverse(void)
Do you mind renaming it gdbstub_can_reverse()?
Otherwise:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- [PATCH v1 3/8] gitlab: add special rule for the hexagon container, (continued)
- [PATCH v1 3/8] gitlab: add special rule for the hexagon container, Alex Bennée, 2021/05/20
- [PATCH v1 4/8] gdbstub: Constify GdbCmdParseEntry, Alex Bennée, 2021/05/20
- [PATCH v1 6/8] hmp-commands: expand type of icount to "l" in replay commands, Alex Bennée, 2021/05/20
- [PATCH v1 5/8] gdbstub: Replace GdbCmdContext with plain g_array(), Alex Bennée, 2021/05/20
- [PATCH v1 8/8] plugins/syscall: Added a table-like summary output, Alex Bennée, 2021/05/20
- [PATCH v1 7/8] gdbstub: tidy away reverse debugging check into function, Alex Bennée, 2021/05/20
- Re: [PATCH v1 0/8] various misc fixes (gitlab, gdbstub, plugins), Alex Bennée, 2021/05/24