From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by sourceware.org (Postfix) with ESMTPS id C80A8386100A for ; Mon, 22 Mar 2021 13:22:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C80A8386100A Received: by mail-qt1-x829.google.com with SMTP id m7so12210510qtq.11 for ; Mon, 22 Mar 2021 06:22:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UIySSoYQttW+p1BrghAOc+v1s1y2m//wH7jPTArz1QQ=; b=GEGykPk+eFvqXCZ3W5DyIasUaNOt71YSi3gBiMtNKR0xrcstHSjdX7Xjfezd8Xq24e KFFH8GJQydjuy3gO6LMoOhjWGZVT/dN7mrkUbF/2EHfxN9dNUzPdvNwtfdXoHsWSTmpR 3pG/+/2LW81D48IajQ4IhC86JWTGzthMsIqtUQ8L33lOs6uEg+fR7U2uW1kb/BkKlHFc mc8q+ntFVYk1jmFfnQw5lUxsz1n0OWfgPFn9LVgfLynUysHl7qR2o+E6C3NcJELUMIWz GDq28/Z+32u47dXsRCfggW0/0xbXAxwpHiBRSzlJxy3Q9qUVCi/vyTOyC33yl83V4AZP JohQ== X-Gm-Message-State: AOAM531JLkqdNe1Xpdugg0+7eKxSQKaFgvfHkgFf7lNRshyDfc1ARKfv G06QKLxe3ldXv5CQb8nTgnMpYn2BW6ZEBw== X-Google-Smtp-Source: ABdhPJwRcuFKDr670priI+Srt2kHqMcgQeFDE5EOaxgaqIxuVH/M7L+z0huGbKxYgFeesdcvxvy5YA== X-Received: by 2002:ac8:4d97:: with SMTP id a23mr9389793qtw.265.1616419330363; Mon, 22 Mar 2021 06:22:10 -0700 (PDT) Received: from localhost.localdomain ([2804:7f0:4841:2841:2c21:ec8a:30f3:55a6]) by smtp.gmail.com with ESMTPSA id r35sm7364575qtd.95.2021.03.22.06.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 06:22:09 -0700 (PDT) From: Luis Machado To: gdb-patches@sourceware.org Subject: [PATCH v6 24/25] Add NEWS entry. Date: Mon, 22 Mar 2021 10:21:18 -0300 Message-Id: <20210322132120.1202230-25-luis.machado@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210322132120.1202230-1-luis.machado@linaro.org> References: <20210322132120.1202230-1-luis.machado@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 22 Mar 2021 13:22:12 -0000 Updates on v6: - Mention the new set print memory-tag-violations option. - Update NEWS wording. Updates on v4: - Update command names. -- Mention the new packets and memory tagging features. gdb/ChangeLog: YYYY-MM-DD Luis Machado * NEWS: Mention memory tagging changes. --- gdb/NEWS | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index 7f5a745d0c0..2c35f7319c4 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,21 @@ *** Changes since GDB 10 +* GDB now supports general memory tagging functionality if the underlying + architecture supports the proper primitives and hooks. Currently this is + enabled only for AArch64 MTE. + + This includes: + + - Additional information when the inferior crashes with a SIGSEGV caused by + a memory tag violation. + + - A new modifier 'm' for the "x" command, which displays allocation tags for a + particular memory range. + + - Display of memory tag mismatches by "print", for addresses and + pointers, if memory tagging is supported by the architecture. + * Building GDB now requires GMP (The GNU Multiple Precision Arithmetic Library). @@ -39,6 +54,12 @@ set debug event-loop show debug event-loop Control the display of debug output about GDB's event loop. +set print memory-tag-violations +show print memory-tag-violations + Control whether to display additional information about memory tag violations + when printing pointers and addresses. Architecture support for memory + tagging is required for this option to have an effect. + maintenance flush symbol-cache maintenance flush register-cache These new commands are equivalent to the already existing commands @@ -50,6 +71,17 @@ maintenance flush dcache maintenance info target-sections Print GDB's internal target sections table. +memory-tag show-logical-tag POINTER + Print the logical tag for POINTER. +memory-tag with-logical-tag POINTER TAG + Print POINTER with logical tag TAG. +memory-tag show-allocation-tag ADDRESS + Print the allocation tag for ADDRESS. +memory-tag set-allocation-tag ADDRESS LENGTH TAGS + Set the allocation tag for [ADDRESS, ADDRESS + LENGTH) to TAGS. +memory-tag check POINTER + Validate that POINTER's logical tag matches the allocation tag. + * Changed commands break [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] @@ -98,6 +130,14 @@ maintenance info sections ARM Symbian arm*-*-symbianelf* +* New remote packets + +qMemTags + Request the remote to send allocation tags for a particular memory range. +QMemTags + Request the remote to store the specified allocation tags to the requested + memory range. + *** Changes in GDB 10 * There are new feature names for ARC targets: "org.gnu.gdb.arc.core" @@ -182,8 +222,6 @@ ARM Symbian arm*-*-symbianelf* * On Windows targets, it is now possible to debug 32-bit programs with a 64-bit GDB. -* New commands - set exec-file-mismatch -- Set exec-file-mismatch handling (ask|warn|off). show exec-file-mismatch -- Show exec-file-mismatch handling (ask|warn|off). Set or show the option 'exec-file-mismatch'. When GDB attaches to a -- 2.25.1