1, /* memory_tag_violations */
0, /* stop_print_at_null */
0, /* print_array_indexes */
+ 1, /* compact_capabilities */
0, /* deref_ref */
1, /* static_field_print */
1, /* pascal_static_field_print */
fprintf_filtered (file, _("Printing of array indexes is %s.\n"), value);
}
+/* By default we print capabilities in compact form. This may be changed to
+ print them in a more verbose format. */
+
+static void
+show_print_compact_capabilities (struct ui_file *file, int from_tty,
+ struct cmd_list_element *c,
+ const char *value)
+{
+ fprintf_filtered (file, _("Printing of compact capabilities is %s.\n"),
+ value);
+}
+
/* Print repeat counts if there are more than this many repetitions of an
element in an array. Referenced by the low level language dependent
print routines. */
uint128_t dummy_cap;
memcpy (&dummy_cap, contents, length);
capability cap (dummy_cap, tag);
- fprintf_filtered (stream, "%s ", cap.to_str (true).c_str ());
+ fprintf_filtered (stream, "%s ",
+ cap.to_str (options->compact_capabilities).c_str ());
}
return;
NULL, /* help_doc */
},
+ boolean_option_def {
+ "compact-capabilities",
+ [] (value_print_options *opt) { return &opt->compact_capabilities; },
+ show_print_compact_capabilities, /* show_cmd_cb */
+ N_("Set compact printing of capabilities."),
+ N_("Show compact printing of capabilities."),
+ NULL, /* help_doc */
+ },
+
uinteger_option_def {
"elements",
[] (value_print_options *opt) { return &opt->print_max; },