mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
gdb/
2012-11-30 Yao Qi <yao@codesourcery.com> * breakpoint.c (print_one_breakpoint_location): Combine two blocks handling 'hit count' together.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2012-11-30 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* infrun.c (error_is_running, ensure_not_running): Move them
|
* infrun.c (error_is_running, ensure_not_running): Move them
|
||||||
|
@ -6026,7 +6026,9 @@ print_one_breakpoint_location (struct breakpoint *b,
|
|||||||
ui_out_text (uiout, "\n");
|
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. */
|
/* FIXME should make an annotation for this. */
|
||||||
if (is_catchpoint (b))
|
if (is_catchpoint (b))
|
||||||
@ -6042,12 +6044,13 @@ print_one_breakpoint_location (struct breakpoint *b,
|
|||||||
else
|
else
|
||||||
ui_out_text (uiout, " times\n");
|
ui_out_text (uiout, " times\n");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
/* Output the count also if it is zero, but only if this is mi.
|
{
|
||||||
FIXME: Should have a better test for this. */
|
/* 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))
|
||||||
if (!part_of_multiple && b->hit_count == 0)
|
|
||||||
ui_out_field_int (uiout, "times", b->hit_count);
|
ui_out_field_int (uiout, "times", b->hit_count);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!part_of_multiple && b->ignore_count)
|
if (!part_of_multiple && b->ignore_count)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user