2012-11-30  Yao Qi  <yao@codesourcery.com>

	* breakpoint.c (print_one_breakpoint_location): Indent code.
This commit is contained in:
Yao Qi 2012-12-01 02:16:28 +00:00
parent 33185a2c38
commit 31f56a275d
2 changed files with 22 additions and 18 deletions

View file

@ -1,3 +1,7 @@
2012-11-30 Yao Qi <yao@codesourcery.com>
* breakpoint.c (print_one_breakpoint_location): Indent code.
2012-11-30 Yao Qi <yao@codesourcery.com> 2012-11-30 Yao Qi <yao@codesourcery.com>
* breakpoint.c (print_one_breakpoint_location): Combine two * breakpoint.c (print_one_breakpoint_location): Combine two

View file

@ -6029,26 +6029,26 @@ print_one_breakpoint_location (struct breakpoint *b,
if (!part_of_multiple) if (!part_of_multiple)
{ {
if (b->hit_count) if (b->hit_count)
{ {
/* FIXME should make an annotation for this. */ /* FIXME should make an annotation for this. */
if (is_catchpoint (b)) if (is_catchpoint (b))
ui_out_text (uiout, "\tcatchpoint"); ui_out_text (uiout, "\tcatchpoint");
else if (is_tracepoint (b)) else if (is_tracepoint (b))
ui_out_text (uiout, "\ttracepoint"); ui_out_text (uiout, "\ttracepoint");
else else
ui_out_text (uiout, "\tbreakpoint"); ui_out_text (uiout, "\tbreakpoint");
ui_out_text (uiout, " already hit "); ui_out_text (uiout, " already hit ");
ui_out_field_int (uiout, "times", b->hit_count); ui_out_field_int (uiout, "times", b->hit_count);
if (b->hit_count == 1) if (b->hit_count == 1)
ui_out_text (uiout, " time\n"); ui_out_text (uiout, " time\n");
else else
ui_out_text (uiout, " times\n"); ui_out_text (uiout, " times\n");
} }
else else
{ {
/* Output the count also if it is zero, but only if this is mi. */ /* Output the count also if it is zero, but only if this is mi. */
if (ui_out_is_mi_like_p (uiout)) if (ui_out_is_mi_like_p (uiout))
ui_out_field_int (uiout, "times", b->hit_count); ui_out_field_int (uiout, "times", b->hit_count);
} }
} }