gdbstub: abstract target specific details from gdb_put_packet_binary
commita7e0f9bd2ace16df2aa557b0670c20bfe9cef280
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 3 Mar 2023 02:57:49 +0000 (2 18:57 -0800)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 7 Mar 2023 20:44:08 +0000 (7 20:44 +0000)
treee5a4475e780edf11cafa7c340376bf91b914586f
parentccd4c7c24a722288127eff2a4dc2793e6a3c04f0
gdbstub: abstract target specific details from gdb_put_packet_binary

We unfortunately handle the checking of packet acknowledgement
differently for user and softmmu modes. Abstract the user mode stuff
behind gdb_got_immediate_ack with a stub for softmmu.

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: <20230302190846.2593720-14-alex.bennee@linaro.org>
Message-Id: <20230303025805.625589-14-richard.henderson@linaro.org>
gdbstub/gdbstub.c
gdbstub/internals.h
gdbstub/softmmu.c
gdbstub/user.c