qemu/include/gdbstub
Alex Bennée e8122a7118 gdbstub: Re-factor gdb command extensions
Coverity reported a memory leak (CID 1549757) in this code and its
admittedly rather clumsy handling of extending the command table.
Instead of handing over a full array of the commands lets use the
lighter weight GPtrArray and simply test for the presence of each
entry as we go. This avoids complications of transferring ownership of
arrays and keeps the final command entries as static entries in the
target code.

Cc: Akihiko Odaki <akihiko.odaki@daynix.com>
Cc: Gustavo Bueno Romero <gustavo.romero@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Gustavo Romero <gustavo.romero@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240718094523.1198645-4-alex.bennee@linaro.org>
2024-07-22 09:37:44 +01:00
..
commands.h gdbstub: Re-factor gdb command extensions 2024-07-22 09:37:44 +01:00
enums.h gdbstub: move enums into separate header 2024-06-24 10:14:17 +01:00
helpers.h gdbstub: Avoid including 'cpu.h' in 'gdbstub/helpers.h' 2024-04-26 15:31:37 +02:00
syscalls.h gdbstub: replace exit calls with proper shutdown for softmmu 2023-10-12 12:36:37 +10:00
user.h gdbstub: Save target's siginfo 2024-03-13 11:43:52 +00:00