]> 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)
committerLuis Machado <luis.machado@linaro.org>
Tue, 8 Dec 2020 18:02:58 +0000 (15:02 -0300)
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/ChangeLog
gdbsupport/capability.cc

index baae422e09882f04786eba194f3d890cb4ec9f8f..111581b8d5c918bb3b1ff7ca8c9b653a0470acfe 100644 (file)
@@ -1,3 +1,8 @@
+2020-11-11  Luis Machado  <luis.machado@arm.com>
+
+       * capability.cc (capability::to_str): Rename "attributes" to
+       "permissions".
+
 2020-11-11  Luis Machado  <luis.machado@arm.com>
 
        * tdesc.cc (tdesc_predefined_types): Update type names for
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 + ", ";