diff options
author | Yao Qi <yao@codesourcery.com> | 2012-12-01 02:16:28 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-12-01 02:16:28 +0000 |
commit | 31f56a275d435e2e70b6431063ce510942d9a29a (patch) | |
tree | 407dbb43a7f9676c1c04f85e92a9d41fd254467b /gdb | |
parent | 33185a2c38fb94ab286689fc1373ff5b1c328dbf (diff) | |
download | gdb-31f56a275d435e2e70b6431063ce510942d9a29a.zip gdb-31f56a275d435e2e70b6431063ce510942d9a29a.tar.gz gdb-31f56a275d435e2e70b6431063ce510942d9a29a.tar.bz2 |
gdb/
2012-11-30 Yao Qi <yao@codesourcery.com>
* breakpoint.c (print_one_breakpoint_location): Indent code.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/breakpoint.c | 36 |
2 files changed, 22 insertions, 18 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5fcbfb..72423fb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2012-11-30 Yao Qi <yao@codesourcery.com> + * breakpoint.c (print_one_breakpoint_location): Indent code. + +2012-11-30 Yao Qi <yao@codesourcery.com> + * breakpoint.c (print_one_breakpoint_location): Combine two blocks handling 'hit count' together. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index b1bb8ed..59b7bf3 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6029,26 +6029,26 @@ print_one_breakpoint_location (struct breakpoint *b, if (!part_of_multiple) { if (b->hit_count) - { - /* FIXME should make an annotation for this. */ - if (is_catchpoint (b)) - ui_out_text (uiout, "\tcatchpoint"); - else if (is_tracepoint (b)) - ui_out_text (uiout, "\ttracepoint"); - else - ui_out_text (uiout, "\tbreakpoint"); - ui_out_text (uiout, " already hit "); - ui_out_field_int (uiout, "times", b->hit_count); - if (b->hit_count == 1) - ui_out_text (uiout, " time\n"); - else - ui_out_text (uiout, " times\n"); - } + { + /* FIXME should make an annotation for this. */ + if (is_catchpoint (b)) + ui_out_text (uiout, "\tcatchpoint"); + else if (is_tracepoint (b)) + ui_out_text (uiout, "\ttracepoint"); + else + ui_out_text (uiout, "\tbreakpoint"); + ui_out_text (uiout, " already hit "); + ui_out_field_int (uiout, "times", b->hit_count); + if (b->hit_count == 1) + ui_out_text (uiout, " time\n"); + else + ui_out_text (uiout, " times\n"); + } else { - /* Output the count also if it is zero, but only if this is mi. */ - if (ui_out_is_mi_like_p (uiout)) - ui_out_field_int (uiout, "times", b->hit_count); + /* Output the count also if it is zero, but only if this is mi. */ + if (ui_out_is_mi_like_p (uiout)) + ui_out_field_int (uiout, "times", b->hit_count); } } |