From b0d32c0644f8420fc8d0538f7d57eb0e6208ba66 Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Wed, 4 Nov 2020 16:23:40 -0300 Subject: [PATCH] Adjust capability string for printing Rename "attributes" to "permissions" when printing decoded capabilities. gdbsupport/ChangeLog: 2020-11-11 Luis Machado * capability.cc (capability::to_str): Rename "attributes" to "permissions". --- gdbsupport/capability.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdbsupport/capability.cc b/gdbsupport/capability.cc index f2979d3060a..1b01590d5ca 100644 --- a/gdbsupport/capability.cc +++ b/gdbsupport/capability.cc @@ -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 + ", "; -- 2.47.2