gdbstub: make GDBState static and have common init function
commit8d98c445dcc6e3880c14b4ae7fc842e302703638
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 16 Mar 2020 17:21:33 +0000 (16 17:21 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 17 Mar 2020 17:38:37 +0000 (17 17:38 +0000)
tree57544206bc4a3443f01f82d4713e6ffec2ff0ef6
parent2dbd39c27d5dd1a3028a2f7ba8be8d7033176f53
gdbstub: make GDBState static and have common init function

Instead of allocating make this entirely static. We shall reduce the
size of the structure in later commits and dynamically allocate parts
of it. We introduce an init and reset helper function to keep all the
manipulation in one place.

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>
Message-Id: <20200316172155.971-7-alex.bennee@linaro.org>
gdbstub.c