]> git.proxmox.com Git - mirror_qemu.git/commit - gdbstub.c
gdbstub: change GDBState.last_packet to GByteArray
authorDamien Hedde <damien.hedde@greensocs.com>
Mon, 16 Mar 2020 17:21:53 +0000 (17:21 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 17 Mar 2020 17:38:47 +0000 (17:38 +0000)
commitd116e813a5aa6eaadf46fea39ea0395c060b3721
treee6ff2b806f70ad20692818fc6ab4300d0c5de274
parentf4a23e1797dcfbcec9f6e3e7a64865ac07aabf06
gdbstub: change GDBState.last_packet to GByteArray

Remove the packet size upper limit by using a GByteArray
instead of a statically allocated array for last_packet.
Thus we can now send big packets.

Also remove the last_packet_len field and use last_packet->len
instead.

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