From patchwork Mon Feb 10 16:14:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 863790 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp1676017wrt; Mon, 10 Feb 2025 08:16:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWaBbCu60ExtWupzNRmpNZ7C2v+/AYvxVGosJpsJvndldpxdHdlM+x4a9HGdaE6bydiKq5DqA==@linaro.org X-Google-Smtp-Source: AGHT+IHXa0lRzDRLH8gylsGDy2RpF4nc2fPaQNXNHF+7gOAHDstxpg9ZA0xF8Kfq/dffaBj95iXi X-Received: by 2002:a05:622a:c5:b0:466:9507:624d with SMTP id d75a77b69052e-47167a37ae7mr182936051cf.27.1739204218896; Mon, 10 Feb 2025 08:16:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739204218; cv=none; d=google.com; s=arc-20240605; b=UottXmCa1Pb8Ru1gF7oSq9G0jSCpr3V381L6jQOl6Sa3v5LQZFyGfzYsePMGxheYEJ CXPVWlIumPAdJRJQd51CC3paGkD0XvpaVjf3KofDdKdhpOjgU7+jPitC5ruPhjgxw0H6 JDeg6+VYRk8SYo5TLbF0S4lh4GHkglBraGNj3ASMLxFK0cWuzvzD5rvAZ/LFFoZRHnkT TlZtqarb2/GguEJPW/yuLxRPsmrraiyepBIaHHhezAo/JIhCnkV0RA0WH8z/x3EpmhFA OsJclPiHDvyemJB6NqVXIREY6C/9iPoL6yw1KxtLd+ilclMGTX8fudAaWyfRWTxJ11NU gKXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=PVPkeSXe9XeKHyg9wdlTOD67ZqgGK5EiAy24Z30yFIk=; fh=m3bIYSMZqCABEJVkIKLKf3tNf8TH8EKhZ9yqNwsZqDo=; b=CXLJ0ZLo+kjFkDt7Rd2nI8tkbk3z86zl8LFkY8SRcUa3yWzGru1/Fd0KUdYbdfl7E+ Gm0jWO7ZqxK+Tvj03vZfu/8PC1gw1k09gu43xZh1RgMz8yiRHuDnXc8SJ1xRp6XzhNcj vivnGcoKOBosLqXtf4IHL38DfI0QxnM7PmvkvFKxW2qvvDGW0eN5IpW/ZbFW0FG7Bp/d +S7eNQGY0mVHIlauaHjA/6FCSEAPYw/BHl+AvYPxR5QftFZYs6FskHWN55er7QQ+wRgw 1kRhPed+9VjmHAvE+13b49trDV1g7zCqL9yEw6xPluUDJZ5wV0n2u+7PmllDkFcGXqjb iN2Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wvxefPFK; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-471a081fc68si848341cf.222.2025.02.10.08.16.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Feb 2025 08:16:58 -0800 (PST) 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=wvxefPFK; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1thWSU-00080t-H5; Mon, 10 Feb 2025 11:16:31 -0500 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 1thWRB-0004NY-DX for qemu-devel@nongnu.org; Mon, 10 Feb 2025 11:15:09 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1thWR7-0001XS-Rb for qemu-devel@nongnu.org; Mon, 10 Feb 2025 11:15:08 -0500 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-aaee2c5ee6eso739898866b.1 for ; Mon, 10 Feb 2025 08:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739204104; x=1739808904; 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=PVPkeSXe9XeKHyg9wdlTOD67ZqgGK5EiAy24Z30yFIk=; b=wvxefPFKtCS/oI8OqzPgBFaLlHtkNoPu2uJH1VtWeDOLlQ4m9vufcBidroYiPxU7YX Pz82cpC12dW0A+lJ+F2YRAIn0voXa6MHAWm7FE2RxwXcVIEKp+LGB8VPgWlPBuljpcds 6bqwm+GBpO3tcTlgYqx3WP7YXj4ejxb/p/ZnWR6M8os61kQ1fTufjKbO1rHJQNqpWxyo ifUAh0azpYWXibrg8THPPi5PH4dJ1k7aCvS/lW9Q92GpINHFW/N4n0Chml6V9g5Vs3DC PV9eSWiu9rnSg47d/mKedB6Ia6KW0KgF9aAUhlMcejcAeZK2jCkY+1rEkox7Z4u7NKhL 6L7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739204104; x=1739808904; 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=PVPkeSXe9XeKHyg9wdlTOD67ZqgGK5EiAy24Z30yFIk=; b=XcBKr410ptHCEd87ETxA3HJefDRHhwBGwDBoodjrdYZOYMy3R624+q3Py4DK2rsLXK 9AABakUzi4KsXt7XyHe8cUvre1yOvDIphEUMJUJbEZ9+L10TZ7TQIlQ3EU93XRoM3JUJ GXtRUS7iF0DC4gdB+L66Fu8FzNDfvwHFJV9behcuLc6xv4J0DobMQJ+gUej8YHtzc3D8 TkdbaZzjcq9WRUgCeZS5ZLzsZUcKQdUp/4MGAeI7tGme/6JPLW7MqeN2gFqGSy9WVRWx JPELoenQ8fUzlSgsiE7gLXho1fyEpISKSLaahFb+7ESAUxlNdgO1Hf3hLq9nDAr0Fdek 7nAg== X-Gm-Message-State: AOJu0YypN3WeAWgN5fa/LtuhXbj+6iSnR03J7HV+8o2b3duTEe7w5mn1 lhzaa18Xb0JiNBgV1kC9xporkVDvG2mPxo9yCb++QiARmUiKYop3MweBn7a73iQQfYaFogux/um bXAY= X-Gm-Gg: ASbGncvN7Meyhsyr0Zb6tr0jajuhig1AnPsh2BVOHg1GAz+AOwVXYH6eYiXUPZKDcbl yRaIUqVVt/dVsjePVr2ZKmrNHL8ikZDEl44Q1f+mZGwhMfhdFo9VUugyFsb6S9QVqeD72JQR7M2 q8n7fZcdofghigOgeRpPYl8AdIo2ohvxZBqRkcgu4YK8MYkXAfyyV2vkjiCFWEkEh2INp8jtD7L WuDLC32qD/T/fccavxNsZ1qSKBF2TGDG5yWQYLIbNpyX5nO4y/ACI6hfTR7yPyZ8NDxOPmiZwQm 6oLCQ8RiOFENvHdqVg== X-Received: by 2002:a17:907:7fac:b0:ab7:bcc0:9067 with SMTP id a640c23a62f3a-ab7bcc09563mr588449566b.40.1739204103842; Mon, 10 Feb 2025 08:15:03 -0800 (PST) Received: from draig.lan ([185.126.160.109]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab7b1a981cesm395120066b.118.2025.02.10.08.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:15:00 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 3CC4B603A1; Mon, 10 Feb 2025 16:14:53 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Ilya Leoshkevich , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 16/17] docs/user: Document the %d placeholder and suspend=n QEMU_GDB features Date: Mon, 10 Feb 2025 16:14:50 +0000 Message-Id: <20250210161451.3273284-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250210161451.3273284-1-alex.bennee@linaro.org> References: <20250210161451.3273284-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 From: Ilya Leoshkevich Reviewed-by: Alex Bennée Signed-off-by: Ilya Leoshkevich Message-Id: <20250117001542.8290-8-iii@linux.ibm.com> Signed-off-by: Alex Bennée Message-Id: <20250207153112.3939799-17-alex.bennee@linaro.org> diff --git a/docs/user/main.rst b/docs/user/main.rst index 80a77f0a0c..9a1c60448c 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -54,7 +54,7 @@ Command line options :: - qemu-i386 [-h] [-d] [-L path] [-s size] [-cpu model] [-g port] [-B offset] [-R size] program [arguments...] + qemu-i386 [-h] [-d] [-L path] [-s size] [-cpu model] [-g endpoint] [-B offset] [-R size] program [arguments...] ``-h`` Print the help @@ -91,8 +91,18 @@ Debug options: Activate logging of the specified items (use '-d help' for a list of log items) -``-g port`` - Wait gdb connection to port +``-g endpoint`` + Wait gdb connection to a port (e.g., ``1234``) or a unix socket (e.g., + ``/tmp/qemu.sock``). + + If a unix socket path contains single ``%d`` placeholder (e.g., + ``/tmp/qemu-%d.sock``), it is replaced by the emulator PID, which is useful + when passing this option via the ``QEMU_GDB`` environment variable to a + multi-process application. + + If the endpoint address is followed by ``,suspend=n`` (e.g., + ``1234,suspend=n``), then the emulated program starts without waiting for a + connection, which can be established at any later point in time. ``-one-insn-per-tb`` Run the emulation with one guest instruction per translation block.