From: Luis Machado Date: Wed, 4 Nov 2020 19:23:40 +0000 (-0300) Subject: Adjust capability string for printing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0d32c0644f8420fc8d0538f7d57eb0e6208ba66;p=thirdparty%2Fbinutils-gdb.git 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". --- 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 + ", ";