We just reset the attribute string instead of appending to it. This patch
fixes this.
gdbsupport/ChangeLog:
2020-12-30 Luis Machado <luis.machado@arm.com>
* capability.cc (capability::to_str): Append strings to
attribute string.
+2020-12-30 Luis Machado <luis.machado@arm.com>
+
+ * capability.cc (capability::to_str): Append strings to
+ attribute string.
+
2020-12-30 Luis Machado <luis.machado@arm.com>
* valprint.c (generic_value_print_capability): Don't add 1 to
if (get_tag () == false)
attr_str = "invalid ";
if (get_otype () == CAP_SEAL_TYPE_RB)
- attr_str = "sentry ";
+ attr_str += "sentry ";
if (is_sealed ())
- attr_str = "sealed ";
+ attr_str += "sealed ";
cap_str += "{";
cap_str = val_str + " [" + perm_str + "," + range_str + "]";