[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/15] gdbstub/system: Rename 'user_ctx' argument as 'ctx'
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 03/15] gdbstub/system: Rename 'user_ctx' argument as 'ctx' |
Date: |
Tue, 2 Apr 2024 16:24:18 +0200 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240313213339.82071-4-philmd@linaro.org>
---
gdbstub/internals.h | 8 ++++----
gdbstub/system.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/gdbstub/internals.h b/gdbstub/internals.h
index 66c939c67f..32f9f63297 100644
--- a/gdbstub/internals.h
+++ b/gdbstub/internals.h
@@ -187,7 +187,7 @@ typedef union GdbCmdVariant {
#define get_param(p, i) (&g_array_index(p, GdbCmdVariant, i))
-void gdb_handle_query_rcmd(GArray *params, void *user_ctx); /* system */
+void gdb_handle_query_rcmd(GArray *params, void *ctx); /* system */
void gdb_handle_query_offsets(GArray *params, void *user_ctx); /* user */
void gdb_handle_query_xfer_auxv(GArray *params, void *user_ctx); /*user */
void gdb_handle_query_xfer_siginfo(GArray *params, void *user_ctx); /*user */
@@ -201,11 +201,11 @@ void gdb_handle_query_supported_user(const char
*gdb_supported); /* user */
bool gdb_handle_set_thread_user(uint32_t pid, uint32_t tid); /* user */
bool gdb_handle_detach_user(uint32_t pid); /* user */
-void gdb_handle_query_attached(GArray *params, void *user_ctx); /* both */
+void gdb_handle_query_attached(GArray *params, void *ctx); /* both */
/* system only */
-void gdb_handle_query_qemu_phy_mem_mode(GArray *params, void *user_ctx);
-void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void *user_ctx);
+void gdb_handle_query_qemu_phy_mem_mode(GArray *params, void *ctx);
+void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void *ctx);
/* sycall handling */
void gdb_handle_file_io(GArray *params, void *user_ctx);
diff --git a/gdbstub/system.c b/gdbstub/system.c
index a3ce384cd1..d235403855 100644
--- a/gdbstub/system.c
+++ b/gdbstub/system.c
@@ -488,13 +488,13 @@ bool gdb_can_reverse(void)
*/
void gdb_handle_query_qemu_phy_mem_mode(GArray *params,
- void *user_ctx)
+ void *ctx)
{
g_string_printf(gdbserver_state.str_buf, "%d", phy_memory_mode);
gdb_put_strbuf();
}
-void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void *user_ctx)
+void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void *ctx)
{
if (!params->len) {
gdb_put_packet("E22");
@@ -509,7 +509,7 @@ void gdb_handle_set_qemu_phy_mem_mode(GArray *params, void
*user_ctx)
gdb_put_packet("OK");
}
-void gdb_handle_query_rcmd(GArray *params, void *user_ctx)
+void gdb_handle_query_rcmd(GArray *params, void *ctx)
{
const guint8 zero = 0;
int len;
@@ -539,7 +539,7 @@ void gdb_handle_query_rcmd(GArray *params, void *user_ctx)
* Execution state helpers
*/
-void gdb_handle_query_attached(GArray *params, void *user_ctx)
+void gdb_handle_query_attached(GArray *params, void *ctx)
{
gdb_put_packet("1");
}
--
2.41.0
- [PULL 00/15] Misc HW patches for 2024-04-02, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 01/15] accel/tcg/plugin: Remove CONFIG_SOFTMMU_GATE definition, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 02/15] gdbstub: Correct invalid mentions of 'softmmu' by 'system', Philippe Mathieu-Daudé, 2024/04/02
- [PULL 03/15] gdbstub/system: Rename 'user_ctx' argument as 'ctx',
Philippe Mathieu-Daudé <=
- [PULL 04/15] target/ppc: Rename init_excp_4xx_softmmu() -> init_excp_4xx(), Philippe Mathieu-Daudé, 2024/04/02
- [PULL 05/15] hw/arm/smmu: Avoid using inlined functions with external linkage again, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 06/15] accel/hvf: Un-inline hvf_arch_supports_guest_debug(), Philippe Mathieu-Daudé, 2024/04/02
- [PULL 07/15] qtest/libqos: Reduce size_to_prdtl() declaration scope, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 08/15] MAINTAINERS: Fix error-report.c entry, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 09/15] hw/i386/pc: Restrict CXL to PCI-based machines, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 10/15] block: Remove unnecessary NULL check in bdrv_pad_request(), Philippe Mathieu-Daudé, 2024/04/02
- [PULL 11/15] plugins: fix -Werror=maybe-uninitialized false-positive, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 12/15] hw/nvme: fix -Werror=maybe-uninitialized, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 13/15] gpio/pca955x: Update maintainer email address, Philippe Mathieu-Daudé, 2024/04/02