]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Adjust capability string for printing
authorLuis Machado <luis.machado@arm.com>
Wed, 4 Nov 2020 19:23:40 +0000 (16:23 -0300)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:53:23 +0000 (15:53 -0700)
Rename "attributes" to "permissions" when printing decoded capabilities.

gdbsupport/ChangeLog:

2020-11-11  Luis Machado  <luis.machado@arm.com>

* capability.cc (capability::to_str): Rename "attributes" to
"permissions".

gdbsupport/capability.cc

index f2979d3060aab05df6eda57eca0ccbaca9c2d4e8..1b01590d5cac812874d4d3aa7985608522462600 100644 (file)
@@ -529,7 +529,7 @@ std::string
 capability::to_str (void)
 {
   /* The printing format is the following:
-     {tag = %d, address = 0x%016x, attributes = {[%s], otype = 0x%04x,
+     {tag = %d, address = 0x%016x, permissions = {[%s], otype = 0x%04x,
       [range = [0x%016x - 0x%016x)}}
   */
   std::string cap_str ("");
@@ -566,7 +566,7 @@ capability::to_str (void)
 
   /* Assemble the capability string.  */
   cap_str += "{tag = " + tag_str + ", address = " + val_str + ", "
-            + "attributes = {" + perm_str + " ";
+            + "permissions = {" + perm_str + " ";
 
   if (is_sealed ())
     cap_str += "otype = " + otype_str + ", ";