Remove some is_mi_like_p from breakpoint code

This removes some uses of is_mi_like_p from the breakpoint code.  The
break-catch-throw.c change brings it into line with what other
breakpoint classes do.  The other changes simply replace printf calls
with ui_out::text or ui_out::message calls.

ChangeLog
2018-04-30  Tom Tromey  <tom@tromey.com>

	* breakpoint.c (mention): Remove use of is_mi_like_p.
	(print_mention_ranged_breakpoint): Likewise.
	* break-catch-throw.c (print_it_exception_catchpoint): Remove use
	of is_mi_like_p.
This commit is contained in:
Tom Tromey 2018-04-29 20:52:26 -06:00
parent f3c6ababac
commit 2d33446d4d
3 changed files with 12 additions and 12 deletions

View file

@ -8596,9 +8596,7 @@ static void
mention (struct breakpoint *b)
{
b->ops->print_mention (b);
if (current_uiout->is_mi_like_p ())
return;
printf_filtered ("\n");
current_uiout->text ("\n");
}
@ -9795,12 +9793,9 @@ print_mention_ranged_breakpoint (struct breakpoint *b)
gdb_assert (bl);
gdb_assert (b->type == bp_hardware_breakpoint);
if (uiout->is_mi_like_p ())
return;
printf_filtered (_("Hardware assisted ranged breakpoint %d from %s to %s."),
b->number, paddress (bl->gdbarch, bl->address),
paddress (bl->gdbarch, bl->address + bl->length - 1));
uiout->message (_("Hardware assisted ranged breakpoint %d from %s to %s."),
b->number, paddress (bl->gdbarch, bl->address),
paddress (bl->gdbarch, bl->address + bl->length - 1));
}
/* Implement the "print_recreate" breakpoint_ops method for