aboutsummaryrefslogtreecommitdiff
path: root/gdbstub/gdbstub.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-04-25 11:12:19 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-06 14:13:45 +0200
commit59272469bd1365564fe0bb2c10d8c1d25acd51a6 (patch)
tree07dc487ec721c314928ac502eaacb74318301d55 /gdbstub/gdbstub.c
parent8019601324159e76ccced4eb8d27093ec0011a54 (diff)
downloadqemu-59272469bd1365564fe0bb2c10d8c1d25acd51a6.zip
qemu-59272469bd1365564fe0bb2c10d8c1d25acd51a6.tar.gz
qemu-59272469bd1365564fe0bb2c10d8c1d25acd51a6.tar.bz2
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>
Diffstat (limited to 'gdbstub/gdbstub.c')
-rw-r--r--gdbstub/gdbstub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
index 9c2b8b5..b357499 100644
--- a/gdbstub/gdbstub.c
+++ b/gdbstub/gdbstub.c
@@ -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+");