From patchwork Tue Apr 2 14:24:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 785125 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4962857wrt; Tue, 2 Apr 2024 07:26:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV7zacTj3oNDLVKO7gtQVXJgCIxPkU0SZ5cb/5f3lb8EahaYP9w7py94FwkGpJyWFbVUx+uNl0fqkLiiIhwKMVK X-Google-Smtp-Source: AGHT+IFiES7lAlOeSyzJ3nUZm3AsJRJl4JBTVq6WddVLDg50Jx85g4zRWNUxRz8FhEw2t8nwxme7 X-Received: by 2002:a25:10c4:0:b0:dd1:7a16:7b4 with SMTP id 187-20020a2510c4000000b00dd17a1607b4mr10166081ybq.31.1712067993395; Tue, 02 Apr 2024 07:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712067993; cv=none; d=google.com; s=arc-20160816; b=OaX1BoflXpMEvztgD8FDqFOjvTSKbP6tsItEDObutpmdzt92mRm7yoXSZxUKq2t7zp A5BE3KxE4I0ZzUa4GrJjxlRzprnYDnV8jT0z4t32nzMssoFPobVdkK5MKyrZ2WpKWIRX oJCTSTkz7SoOKqkVcdEKoGvBXpLqYyITsHqO2F5UNn/AaeMLAbCzmSFS4caND/8bAe7K /PznMQde9PLeX3vjDtkGUW99ug94hrda/ZSDdF+VShcUG3m1gAl8a9c+WoxXgaXwJJeY vJut0Wjw4rx7P3AzmMP8kVRAfEOosXJoMvXS5sD3RGKNU7Ko0vb3QC3zzbJdyTx0R0cn 6OUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1SmMA2WUYuMdtgR4elvc+VfJjaj3cdDvnYNz/tQrOUw=; fh=S0Ri4tAWTKExaIRSnffHD1uSnOC/XoGTZ/IQjiUr84s=; b=cvnvdWG31lWeMze0yDxphBV1Lzm5KEXTdztz2t/2brUcPho+1uH2ep+UTh79wh4Wic vtM7K1nMyjjNAQgEfgmXWUuktL8vlWl6vmVY3rx8yWNQax+q8dWaQnbODte5pvQcTZIL twrfodYLeHHVLQjy9LNgbB2i84gSCy+XLNZ4rDfVTTG8jxz848HSRHPmqDaNQgdoVl55 t0/5S6vXy+W5EwCw/fHWXUIfMuRMDvtHA/FaBZqpRHue+TEnyUs9YCFf4rVRaaKyxSLv zn7ErFqttOW/MRRV/lrIx780FaN9ijxc7wmCNrpgHuoAINkLo51xoMuOwBK3hGrvOYbA rOEg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hb7kieW8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o9-20020a0cfa89000000b006968fe2fadesi11690167qvn.124.2024.04.02.07.26.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2024 07:26:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hb7kieW8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrf4L-0000lm-Ux; Tue, 02 Apr 2024 10:24:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrf4I-0000kO-4I for qemu-devel@nongnu.org; Tue, 02 Apr 2024 10:24:54 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrf4F-0007az-KL for qemu-devel@nongnu.org; Tue, 02 Apr 2024 10:24:53 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4156dfa8a5cso9454175e9.3 for ; Tue, 02 Apr 2024 07:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712067890; x=1712672690; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1SmMA2WUYuMdtgR4elvc+VfJjaj3cdDvnYNz/tQrOUw=; b=hb7kieW82LlLJuoQnppfDJv3NIowOFcAqoWsZQzMZmJGrn2J7bClLxWBGsekgCdJVC 6GBcwiXilliUtRRkLlJNRu+B3/Yktu0VKELk6Xx+nxTPnURMo8IKEhH3Dfq5JA0oBu9p BoRJj15zUKlorKuVpRwn/5LxQy5aSXJkTFG3dYtZXe4Uq0FELxM7V5a8njrJ19Ytz2DD +whb+VeJicvGkX04SPedxEZ/6Mh+t4grrXQEedydbKpBLOCnaZeRsT8ztgSu4U0R5wiE A20tnfcs4YEE+EGFV/vrEGxZOEuKZLXDVQZuPUq6PDkrkZjs3x53Fq7GEe8Dr0s27SMi Yvzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712067890; x=1712672690; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1SmMA2WUYuMdtgR4elvc+VfJjaj3cdDvnYNz/tQrOUw=; b=gdsWvPHRH7DWpNiuE3SiSJr3hqGHmYT7Qa7dV0q2t9B/lscYFLvVnBsjSGdnyO6ZUj YkU+zbJLNOgV5eg3iKIagAQUYqRKCR9E/rmEQ3gn6OBs97SVo+UHAUS+u28TPIs9fl0j xwXi1vN5Wz3DpEEmOyY6mZfGJY23FcjPkLAsTRpyEvA8HF67MwzjuVL+jW1X3FjYrEOZ ZjC2rlf0HHKW3wzU9qgpHefnNsMhjapqzAunZQukrv55s3dBZvhDhyCTRwDnZkvonsfP 1xfb33YMyqFp76wS0DNEX7BMgVxsf2FkD+BqwsU2jEfBDAbZCsT68XeWXUYXTF2Rxz56 cCbA== X-Gm-Message-State: AOJu0YwPdohQlah1gFIDR1DQjhB5BrI6L87hjk33xhgoSfAsXurlT9tY nKjjzuIeSdnjWydfoToAaQZFa4lRP3VF4T1Ofw1xJqVCSUmvoRXWCQa2JY94kkeAxROsabmiRf0 eHvk= X-Received: by 2002:a05:600c:1797:b0:415:8651:9bae with SMTP id x23-20020a05600c179700b0041586519baemr2547892wmo.41.1712067889798; Tue, 02 Apr 2024 07:24:49 -0700 (PDT) Received: from m1x-phil.lan ([176.187.202.91]) by smtp.gmail.com with ESMTPSA id l2-20020adff482000000b0033ec312cd8asm14249866wro.33.2024.04.02.07.24.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 02 Apr 2024 07:24:49 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= Subject: [PULL 02/15] gdbstub: Correct invalid mentions of 'softmmu' by 'system' Date: Tue, 2 Apr 2024 16:24:17 +0200 Message-ID: <20240402142431.70700-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240402142431.70700-1-philmd@linaro.org> References: <20240402142431.70700-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Message-Id: <20240313213339.82071-3-philmd@linaro.org> --- gdbstub/internals.h | 20 ++++++++++---------- gdbstub/system.c | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gdbstub/internals.h b/gdbstub/internals.h index e83b179920..66c939c67f 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -115,7 +115,7 @@ void gdb_read_byte(uint8_t ch); /* * Packet acknowledgement - we handle this slightly differently - * between user and softmmu mode, mainly to deal with the differences + * between user and system mode, mainly to deal with the differences * between the flexible chardev and the direct fd approaches. * * We currently don't support a negotiated QStartNoAckMode @@ -125,7 +125,7 @@ void gdb_read_byte(uint8_t ch); * gdb_got_immediate_ack() - check ok to continue * * Returns true to continue, false to re-transmit for user only, the - * softmmu stub always returns true. + * system stub always returns true. */ bool gdb_got_immediate_ack(void); /* utility helpers */ @@ -135,12 +135,12 @@ CPUState *gdb_first_attached_cpu(void); void gdb_append_thread_id(CPUState *cpu, GString *buf); int gdb_get_cpu_index(CPUState *cpu); unsigned int gdb_get_max_cpus(void); /* both */ -bool gdb_can_reverse(void); /* softmmu, stub for user */ +bool gdb_can_reverse(void); /* system emulation, stub for user */ int gdb_target_sigtrap(void); /* user */ void gdb_create_default_process(GDBState *s); -/* signal mapping, common for softmmu, specialised for user-mode */ +/* signal mapping, common for system, specialised for user-mode */ int gdb_signal_to_target(int sig); int gdb_target_signal_to_gdb(int sig); @@ -157,12 +157,12 @@ void gdb_continue(void); int gdb_continue_partial(char *newstates); /* - * Helpers with separate softmmu and user implementations + * Helpers with separate system and user implementations */ void gdb_put_buffer(const uint8_t *buf, int len); /* - * Command handlers - either specialised or softmmu or user only + * Command handlers - either specialised or system or user only */ void gdb_init_gdbserver_state(void); @@ -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); /* softmmu */ +void gdb_handle_query_rcmd(GArray *params, void *user_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 */ @@ -203,7 +203,7 @@ bool gdb_handle_detach_user(uint32_t pid); /* user */ void gdb_handle_query_attached(GArray *params, void *user_ctx); /* both */ -/* softmmu only */ +/* 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); @@ -213,11 +213,11 @@ bool gdb_handled_syscall(void); void gdb_disable_syscalls(void); void gdb_syscall_reset(void); -/* user/softmmu specific syscall handling */ +/* user/system specific syscall handling */ void gdb_syscall_handling(const char *syscall_packet); /* - * Break/Watch point support - there is an implementation for softmmu + * Break/Watch point support - there is an implementation for system * and user mode. */ bool gdb_supports_guest_debug(void); diff --git a/gdbstub/system.c b/gdbstub/system.c index 83fd452800..a3ce384cd1 100644 --- a/gdbstub/system.c +++ b/gdbstub/system.c @@ -1,5 +1,5 @@ /* - * gdb server stub - softmmu specific bits + * gdb server stub - system specific bits * * Debug integration depends on support from the individual * accelerators so most of this involves calling the ops helpers.