]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core/cpu: gdb_arch_name string should not be freed
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2025 14:28:11 +0000 (14:28 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 29 Apr 2025 07:02:32 +0000 (10:02 +0300)
commitdbbb444d72f7c7b251e9b88185d9b8fc2a468efa
tree86dfd2a72e7934439cdea5eb10002f6ca685b0eb
parent94da90b8c7fa949ae3f61c254ee90b04889c016e
hw/core/cpu: gdb_arch_name string should not be freed

The documentation for the CPUClass::gdb_arch_name method claims that
the returned string should be freed with g_free().  This is not
correct: in commit a650683871ba728 we changed this method to
instead return a simple constant string, but forgot to update
the documentation.

Make the documentation match the new semantics.

Fixes: a650683871ba728 ("hw/core/cpu: Return static value with gdb_arch_name()")
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250317142819.900029-2-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 56a9f0d4c4a483ce217e5290db69cb1788586787)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/hw/core/cpu.h