gdbstub: tidy away reverse debugging check into function
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 20 May 2021 17:43:02 +0000 (18:43 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 25 May 2021 15:52:50 +0000 (16:52 +0100)
commited12f5b4ef626bfd1deb6f178282a18ab948750e
treeeec4bcc4f2cbce724ffe4ac89dc101c4ef61950b
parentae49ce00198a46f635d5a37ab79209c145f7960f
gdbstub: tidy away reverse debugging check into function

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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210520174303.12310-8-alex.bennee@linaro.org>
gdbstub.c