aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2020-06-15 15:54:00 -0300
committerLuis Machado <luis.machado@linaro.org>2021-03-24 15:09:57 -0300
commitce192338645499d4ed5a9a3a9f8105f0135a7cfd (patch)
treec0281157c9638e5dda7aab11ef2366ff1f96b6de
parenta668276c18948280cdaa548aa2b8da7293b21e10 (diff)
downloadgdb-ce192338645499d4ed5a9a3a9f8105f0135a7cfd.zip
gdb-ce192338645499d4ed5a9a3a9f8105f0135a7cfd.tar.gz
gdb-ce192338645499d4ed5a9a3a9f8105f0135a7cfd.tar.bz2
Add NEWS entry.
Mention the new packets and memory tagging features. gdb/ChangeLog: 2021-03-24 Luis Machado <luis.machado@linaro.org> * NEWS: Mention memory tagging changes.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/NEWS40
2 files changed, 44 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5d7069a..aa74cb9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2021-03-24 Luis Machado <luis.machado@linaro.org>
+ * NEWS: Mention memory tagging changes.
+
+2021-03-24 Luis Machado <luis.machado@linaro.org>
+
* printcmd.c (decode_format): Handle the 'm' modifier.
(do_examine): Display allocation tags when required/supported.
(should_validate_memtags): New function.
diff --git a/gdb/NEWS b/gdb/NEWS
index 7f5a745..6cf76a1 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"