gdbstub: stop passing GDBState * around and use global
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 16 Mar 2020 17:21:34 +0000 (17:21 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 17 Mar 2020 17:38:38 +0000 (17:38 +0000)
commita346af3e3525e761a7f28659a0fef3d6bc758f62
tree96cb59a5dbc7c2d48f32f78a044c4f2a969fe920
parent8d98c445dcc6e3880c14b4ae7fc842e302703638
gdbstub: stop passing GDBState * around and use global

We only have one GDBState which should be allocated at the time we
process any commands. This will make further clean-up a bit easier.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200316172155.971-8-alex.bennee@linaro.org>
gdbstub.c