OSDN Git Service

gdbstub: clean-up vcont handling to avoid goto
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 30 Jun 2023 18:04:15 +0000 (19:04 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 3 Jul 2023 11:52:30 +0000 (12:52 +0100)
commit2261b73c2802ed976903cdd4e22e3e4efb299a26
tree8467a4b0b907fa821c9e9d78b66bde13c00d4249
parent3b72d68162f63ae4abc78edaa40775b045128ff6
gdbstub: clean-up vcont handling to avoid goto

We can handle all the error exit cases by using g_autofree() for the
one thing that needs cleaning up on the exit.

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