+2010-04-08 Stan Shebs <stan@codesourcery.com>
+
+ * breakpoint.c (default_collect_info): New function.
+ (breakpoints_info): Call it.
+ (maintenance_info_breakpoints): Ditto.
+ (tracepoints_info): Ditto.
+
2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
* i387-tdep.c (i387_collect_xsave): Re-indent.
return nr_printable_breakpoints;
}
+/* Display the value of default-collect in a way that is generally
+ compatible with the breakpoint list. */
+
+static void
+default_collect_info (void)
+{
+ /* If it has no value (which is frequently the case), say nothing; a
+ message like "No default-collect." gets in user's face when it's
+ not wanted. */
+ if (!*default_collect)
+ return;
+
+ /* The following phrase lines up nicely with per-tracepoint collect
+ actions. */
+ ui_out_text (uiout, "default collect ");
+ ui_out_field_string (uiout, "default-collect", default_collect);
+ ui_out_text (uiout, " \n");
+}
+
static void
breakpoints_info (char *bnum_exp, int from_tty)
{
bnum = parse_and_eval_long (bnum_exp);
breakpoint_1 (bnum, 0, NULL);
+
+ default_collect_info ();
}
static void
bnum = parse_and_eval_long (bnum_exp);
breakpoint_1 (bnum, 1, NULL);
+
+ default_collect_info ();
}
static int
else
ui_out_message (uiout, 0, "No tracepoint number %d.\n", tpnum);
}
+
+ default_collect_info ();
}
/* The 'enable trace' command enables tracepoints.