From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id vFM7B5+iIWCsSgAAWB0awg (envelope-from ) for ; Mon, 08 Feb 2021 15:44:15 -0500 Received: by simark.ca (Postfix, from userid 112) id 0FD1C1EF4F; Mon, 8 Feb 2021 15:44:15 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id AE8161E4A3 for ; Mon, 8 Feb 2021 15:44:14 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F1F1438708A6; Mon, 8 Feb 2021 20:44:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1F1438708A6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612817054; bh=aUFIVq6cDpq/0LDQ2vquyF/X8H5vxVi/IX17QtSlgPo=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=yh93iJ+1clfX6a5wBl37PCXHhHMqRs1ZpZEY+bA8Kn207VIS4z//kxg1rQS+W+VXF bMvbUHI3U0bW9f3J2Had8+HPAWDjAe26VQrHKRs50bUW1DLUYRiRHnsl9CTlyaPTbg bYeSc3AVXPAwAJK6pV0Um8g0J33gGNxJ+D80VX0s= Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by sourceware.org (Postfix) with ESMTPS id 9028E38708A6 for ; Mon, 8 Feb 2021 20:44:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9028E38708A6 Received: by mail-qk1-x72d.google.com with SMTP id m144so93232qke.10 for ; Mon, 08 Feb 2021 12:44:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aUFIVq6cDpq/0LDQ2vquyF/X8H5vxVi/IX17QtSlgPo=; b=A0vPxi1inZ9UswI9/br8s/bLHFnmvA6J931xFs9DH1Z+U41KZ6Sa7P7B2LiuQHduBq 0eVqWnp78g00pqEyLChOT/ewSys8teQpdGl2GNTy7yFJfqqpIiC6uVd1X7U/oFgxZWmv MC/zINjymk7ICqplK4wyeHDsHvwkgGjvcmpjD0hrKXxtR2RSiCH5CVOFQnfvJL08KaO/ S7bn8abRiQNcjs+rPrdpZfj8/lT8TaS6jopbouA4WxKfTfFgfiGmp0lyIC1ye9m6Puf4 HYkHOUfyDKY0HuAkfaH9BIiLIfOVolazMOczP3PYrFVPXU2DjbzGXzMBuW6VgKgMaz4n fVdw== X-Gm-Message-State: AOAM531uckh55xcHE2b3pamkAyzZ9S/2CygANwCjm9l/0Rj38OHsAWvI Gm8U6GfOtB4IqqR/J3S4xG6crj5xBju6Nw== X-Google-Smtp-Source: ABdhPJyp2yq1VDQOw8ajpnoXj+rvXuz2XqER04x7NciLW3wKDh6MQ9mnW3BU7uQDHSimIx9/QWT5TQ== X-Received: by 2002:a37:dc43:: with SMTP id v64mr20306139qki.361.1612817050099; Mon, 08 Feb 2021 12:44:10 -0800 (PST) Received: from ?IPv6:2804:7f0:8080:8c83:1018:b18e:9d50:bc53? ([2804:7f0:8080:8c83:1018:b18e:9d50:bc53]) by smtp.gmail.com with ESMTPSA id c127sm17917685qkd.87.2021.02.08.12.44.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Feb 2021 12:44:09 -0800 (PST) Subject: Re: [PATCH v5 23/25] Document new "x" and "print" memory tagging extensions To: Simon Marchi , gdb-patches@sourceware.org References: <20210127202112.2485702-1-luis.machado@linaro.org> <20210127202112.2485702-24-luis.machado@linaro.org> <874ec6e6-6a31-6ee5-a50e-2dd55de7bac5@polymtl.ca> Message-ID: <9f993e86-0764-ad76-0b88-759a05d71d9a@linaro.org> Date: Mon, 8 Feb 2021 17:44:04 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <874ec6e6-6a31-6ee5-a50e-2dd55de7bac5@polymtl.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb-patches Reply-To: Luis Machado Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 2/5/21 2:04 AM, Simon Marchi wrote: > > > On 2021-01-27 3:21 p.m., Luis Machado via Gdb-patches wrote: >> Document the changes to the "print" and "x" commands to support memory >> tagging. >> >> gdb/doc/ChangeLog: >> >> YYYY-MM-DD Luis Machado >> >> * gdb.texinfo (Data): Document memory tagging changes to the "print" >> command. >> (Examining Memory): Document memory tagging changes to the "x" >> command. >> (Memory Tagging): Update with more information on changes to the "x" >> and "print" commands. >> --- >> gdb/doc/gdb.texinfo | 28 +++++++++++++++++++++++++--- >> 1 file changed, 25 insertions(+), 3 deletions(-) >> >> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo >> index f751bdf4d3..5b21991b10 100644 >> --- a/gdb/doc/gdb.texinfo >> +++ b/gdb/doc/gdb.texinfo >> @@ -9935,6 +9935,10 @@ If you omit @var{expr}, @value{GDBN} displays the last value again (from the >> conveniently inspect the same value in an alternative format. >> @end table >> >> +If the architecture supports memory tagging, the @code{print} command will >> +display pointer/memory tag mismatches if what is being printed is a pointer >> +or reference type. @xref{Memory Tagging}. > > Is there a section that documents the print options, to document "set > print memory-tag-violations" and "print -memory-tag-violations"? No. I added documentation entries for those now.