]> git.proxmox.com Git - mirror_qemu.git/commit - gdbstub.c
gdbstub: Replace GdbCmdContext with plain g_array()
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 25 May 2021 08:24:14 +0000 (09:24 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 25 May 2021 15:52:50 +0000 (16:52 +0100)
commit26a16181fafa0f6a4646c9626afda8b7f663c91b
tree882388f3de74692f82b41c751b58a9a29d3d6363
parent305bea066d66cedef0291841f9c6ee3690df3631
gdbstub: Replace GdbCmdContext with plain g_array()

Instead of jumping through hoops let glib deal with both tracking the
number of elements and auto freeing the memory once we are done. This
allows is to drop the usage of ALLOCA(3) which the man-page mentions
its "use is discouraged".

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210520174303.12310-6-alex.bennee@linaro.org>
gdbstub.c