gdbstub: move str_buf to GDBState and use GString
commit308f9e88b28e75b1702112159d6894007372b355
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 16 Mar 2020 17:21:35 +0000 (16 17:21 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 17 Mar 2020 17:38:38 +0000 (17 17:38 +0000)
tree01066fc955d90d1d242d308f80ac3cdc5e1cc654
parenta346af3e3525e761a7f28659a0fef3d6bc758f62
gdbstub: move str_buf to GDBState and use GString

Rather than having a static buffer replace str_buf with a GString
which we know can grow on demand. Convert the internal functions to
take a GString instead of a char * and length.

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>
Tested-by: Damien Hedde <damien.hedde@greensocs.com>
Message-Id: <20200316172155.971-9-alex.bennee@linaro.org>
gdbstub.c