gdbstub: eliminate gdbserver_fd global
commite0a1e2084779fec1adc72866212bda3549fc4c22
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 30 Apr 2020 19:01:18 +0000 (30 20:01 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 6 May 2020 08:29:26 +0000 (6 09:29 +0100)
tree39f9e1100adb0d8c0e237944562e2abcc572b964
parent744f1b0f6888b07c9870329ae9f40b8e641db0ce
gdbstub: eliminate gdbserver_fd global

We don't really need to track this fd beyond the initial creation of
the socket. We already know if the system has been initialised by
virtue of the gdbserver_state so lets remove it. This makes the later
re-factoring easier.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200430190122.4592-6-alex.bennee@linaro.org>
gdbstub.c