mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
user: Use get_task_state() helper
Get the TaskState pointer calling get_task_state(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240428221450.26460-11-philmd@linaro.org>
This commit is contained in:
parent
8019601324
commit
59272469bd
3 changed files with 6 additions and 5 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "exec/gdbstub.h"
|
||||
#include "gdbstub/syscalls.h"
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
#include "accel/tcg/vcpu-state.h"
|
||||
#include "gdbstub/user.h"
|
||||
#else
|
||||
#include "hw/cpu/cluster.h"
|
||||
|
@ -1661,7 +1662,7 @@ static void handle_query_supported(GArray *params, void *user_ctx)
|
|||
|
||||
#if defined(CONFIG_USER_ONLY)
|
||||
#if defined(CONFIG_LINUX)
|
||||
if (gdbserver_state.c_cpu->opaque) {
|
||||
if (get_task_state(gdbserver_state.c_cpu)) {
|
||||
g_string_append(gdbserver_state.str_buf, ";qXfer:auxv:read+");
|
||||
}
|
||||
g_string_append(gdbserver_state.str_buf, ";QCatchSyscalls+");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue