aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-11-30 14:46:39 +0000
committerYao Qi <yao@codesourcery.com>2012-11-30 14:46:39 +0000
commit556ec64d8cdc060dd38d29fdcc41a95def90edea (patch)
tree309f0f6aad060c3b30dde03ca3827097c1fb01c3 /gdb
parent3d3fef6bebbc69ad069f05b5fcb17181553e7fa1 (diff)
downloadgdb-556ec64d8cdc060dd38d29fdcc41a95def90edea.zip
gdb-556ec64d8cdc060dd38d29fdcc41a95def90edea.tar.gz
gdb-556ec64d8cdc060dd38d29fdcc41a95def90edea.tar.bz2
gdb/
2012-11-30 Yao Qi <yao@codesourcery.com> * breakpoint.c (print_one_breakpoint_location): Combine two blocks handling 'hit count' together.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c13
2 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3fa899d..a5fcbfb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2012-11-30 Yao Qi <yao@codesourcery.com>
+ * breakpoint.c (print_one_breakpoint_location): Combine two
+ blocks handling 'hit count' together.
+
+2012-11-30 Yao Qi <yao@codesourcery.com>
+
* infrun.c (error_is_running, ensure_not_running): Move them
to ...
* infcmd.c (error_is_running, ensure_not_running): ... here.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 57d4434..b1bb8ed 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -6026,7 +6026,9 @@ print_one_breakpoint_location (struct breakpoint *b,
ui_out_text (uiout, "\n");
}
- if (!part_of_multiple && b->hit_count)
+ if (!part_of_multiple)
+ {
+ if (b->hit_count)
{
/* FIXME should make an annotation for this. */
if (is_catchpoint (b))
@@ -6042,12 +6044,13 @@ print_one_breakpoint_location (struct breakpoint *b,
else
ui_out_text (uiout, " times\n");
}
-
- /* Output the count also if it is zero, but only if this is mi.
- FIXME: Should have a better test for this. */
+ else
+ {
+ /* Output the count also if it is zero, but only if this is mi. */
if (ui_out_is_mi_like_p (uiout))
- if (!part_of_multiple && b->hit_count == 0)
ui_out_field_int (uiout, "times", b->hit_count);
+ }
+ }
if (!part_of_multiple && b->ignore_count)
{