From patchwork Sat Jul 11 17:07:26 2020 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: 235300 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1465689ilg; Sat, 11 Jul 2020 10:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU35jLt+LJuUQblFnteIyJU4LjJlQyDbgGX5fLTaRr5EP+m5jbzdrTWy6LHzg4G26eL6AC X-Received: by 2002:a25:1689:: with SMTP id 131mr16428076ybw.519.1594487382085; Sat, 11 Jul 2020 10:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594487382; cv=none; d=google.com; s=arc-20160816; b=z8H1o9BlNctnZyVu/lwqyFXP7jCeHHxRNVYwphqohGgTor3UWxefDQ6Xoerxnqao2D PMmATP22vWnl8B+X0609c7D3z1EfQpR6To7HQw+URhm5QeMryHRKcFxC/fdGpZNrU4Z4 /m3Z3mcguyesGKEEYfbosYt7IajhRpls0tetmK7hAzfwhR+Fn7p23NyDBQ9cbsK6iZnk NcwDZC1DDTaTMc7PMj6QDxSEc39HlwGsduA67MGN/ODFqw9kuyqMUvP3//VwB8mIzwTK jPv8ulmQDnPPI8b0mKV9EzgHicN+++s1SKwbbyeYGZHkrGz7XTpdcKgEvzulfTXmqCpe aM9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=QZgACP9mcgOL9A6hGvRHJisqOakSnkvmaCw7DGKHJB4=; b=BZ3NzwfNmz03CJa5ava0mKl3QLKLQnl9IyLZ0z4ik0E6YGFJKxp/vGB9e9cKd+tsbA /XhJGdIs3u8N66HmVEvIDAA+UccxLm/QMDZMXG4VGkXVc3HiRnlZaXEQMuvlaCl4hV2M KHsmD49oQ8HwNKtlE2y2H7uEDDkRo/pDsyUWajUjEXr9G+oCMkChE/cAmSRSJKMAB6J2 GE5yssDg/bTKvpH6xdFzEDUyrBr00adnBjhxwYjPuqTzsIOlX5whNV0krtaWB/fzexFH cjprzFTxWFOHUFFt7Gt8gVV/XxhHlRONTZSo8U7KClIp5IVASgTfGZX5UseuVfF4hC0Z i2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ybIsQBRg; 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=fail (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 u18si2164071ybd.357.2020.07.11.10.09.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Jul 2020 10:09:42 -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=fail header.i=@linaro.org header.s=google header.b=ybIsQBRg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juJ0P-0006iF-Ip for patch@linaro.org; Sat, 11 Jul 2020 13:09:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juIyU-0003Qs-8e for qemu-devel@nongnu.org; Sat, 11 Jul 2020 13:07:42 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:37237) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1juIyS-0006hd-NL for qemu-devel@nongnu.org; Sat, 11 Jul 2020 13:07:41 -0400 Received: by mail-wr1-x436.google.com with SMTP id a6so8983416wrm.4 for ; Sat, 11 Jul 2020 10:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QZgACP9mcgOL9A6hGvRHJisqOakSnkvmaCw7DGKHJB4=; b=ybIsQBRgp71vot6Tcww53CagwK95DArefenBsVpoKA3c4qFUdhBEnMnYFusxgBZkB4 QxN+pQQo+qBoQFyVssUzbI56K4QNRg7aT+Qn73CjKKxt321K3pITpYPkL2QvbJgjZ09p wwDw0h2XNfFxItbBE/eVYzhMgd7TJEUYKbcahgWwXQMomvf+3LXTL+4UX8jPBe76m/U6 3DGCuJ/4iHkMRxf1oPQVk6ixp1c2rWvnvmL6/pg1hcq0SSnkdXgj5cXnyLsTgU8M/Vfy qRn0NIrHnaZ6ItRPIZT35lkiZTdVLBUEmx+Lcys0ILEj31wwLqXJgr5mgCxM91hAz/VR lfZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QZgACP9mcgOL9A6hGvRHJisqOakSnkvmaCw7DGKHJB4=; b=tj9rcnzS/88VHgaDb2ZhGeoIVJ16hEgna8CIszaeBp7XDuhLKOEOqenp0uvM0hm69t JLHVr/mk/T65qWP0uq3o6vB8RpSM0t7FyovkfJUMTES8e0X7m7H1KtK76TWOiy955KhJ wLGrad3YCGW9H4a9LOwvLFlSqFS6b2Ll9HVj5VhWf+ZUEeU20rTmczQAV5bRhExVKRzu AAEjFQ0pBCXXV7+UAROmWYusZroN7QrHAtVuU1oxhGM2c2snvOMoPgJet4dNEuCaQdte qx+B30eMzhjye8w+/xK43DR85rwlmwtyngDWIHCuhp9yY4rvqUXzyxgue90c/otbNjQz ADxw== X-Gm-Message-State: AOAM530gpaahRBrInI+IYG6vBn70RbW9yA8R7zCKCPqMpbCvXmAq+BeQ cWwHnrWziUpqrHWo/9H6ZXXAXQ== X-Received: by 2002:adf:e850:: with SMTP id d16mr75672889wrn.426.1594487259405; Sat, 11 Jul 2020 10:07:39 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g144sm28904932wme.2.2020.07.11.10.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2020 10:07:36 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7CF761FF90; Sat, 11 Jul 2020 18:07:32 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 44/50] docs: Add to gdbstub documentation the PhyMemMode Date: Sat, 11 Jul 2020 18:07:26 +0100 Message-Id: <20200711170732.26213-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200711170732.26213-1-alex.bennee@linaro.org> References: <20200711170732.26213-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Jon Doron Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Jon Doron The PhyMemMode gdb extension command was missing from the gdb.rst document. Signed-off-by: Jon Doron Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20200601171609.1665397-1-arilou@gmail.com> Message-Id: <20200709141327.14631-4-alex.bennee@linaro.org> -- 2.20.1 diff --git a/docs/system/gdb.rst b/docs/system/gdb.rst index a40145fcf8..abda961e2b 100644 --- a/docs/system/gdb.rst +++ b/docs/system/gdb.rst @@ -87,3 +87,23 @@ three commands you can query and set the single step behavior: (gdb) maintenance packet Qqemu.sstep=0x5 sending: "qemu.sstep=0x5" received: "OK" + + +Another feature that QEMU gdbstub provides is to toggle the memory GDB +works with, by default GDB will show the current process memory respecting +the virtual address translation. + +If you want to examine/change the physical memory you can set the gdbstub +to work with the physical memory rather with the virtual one. + +The memory mode can be checked by sending the following command: + +``maintenance packet qqemu.PhyMemMode`` + This will return either 0 or 1, 1 indicates you are currently in the + physical memory mode. + +``maintenance packet Qqemu.PhyMemMode:1`` + This will change the memory mode to physical memory. + +``maintenance packet Qqemu.PhyMemMode:0`` + This will change it back to normal memory mode.