[v6,24/25] Add NEWS entry.

Message ID 20210322132120.1202230-25-luis.machado@linaro.org
State New
Headers show
Series
  • Memory Tagging Support + AArch64 Linux implementation
Related show

Commit Message

Lancelot SIX via Gdb-patches March 22, 2021, 1:21 p.m.
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  <luis.machado@linaro.org>

	* NEWS: Mention memory tagging changes.
---
 gdb/NEWS | 42 ++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)

-- 
2.25.1

Comments

Lancelot SIX via Gdb-patches March 22, 2021, 5:51 p.m. | #1
> Date: Mon, 22 Mar 2021 10:21:18 -0300

> From: Luis Machado via Gdb-patches <gdb-patches@sourceware.org>

> 

> gdb/ChangeLog:

> 

> YYYY-MM-DD  Luis Machado  <luis.machado@linaro.org>

> 

> 	* NEWS: Mention memory tagging changes.


OK.
Lancelot SIX via Gdb-patches March 22, 2021, 5:52 p.m. | #2
Eli,

On 3/22/21 2:51 PM, Eli Zaretskii wrote:
>> Date: Mon, 22 Mar 2021 10:21:18 -0300

>> From: Luis Machado via Gdb-patches <gdb-patches@sourceware.org>

>>

>> gdb/ChangeLog:

>>

>> YYYY-MM-DD  Luis Machado  <luis.machado@linaro.org>

>>

>> 	* NEWS: Mention memory tagging changes.

> 

> OK.

> 


Thanks again for the prompt feedback.

Patch

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