summaryrefslogtreecommitdiff
path: root/gdb/break-catch-throw.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-04-29 20:52:26 -0600
committerTom Tromey <tom@tromey.com>2018-04-30 12:59:05 -0600
commit2d33446d4d58edcf993f42957cfe9627c88f112f (patch)
treef807b68a09e3dfceb253e4be34902ac507874232 /gdb/break-catch-throw.c
parentf3c6ababac34f3a291997f8d5ea6a63949b58b87 (diff)
downloadbinutils-gdb-2d33446d4d58edcf993f42957cfe9627c88f112f.tar.gz
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.
Diffstat (limited to 'gdb/break-catch-throw.c')
-rw-r--r--gdb/break-catch-throw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c
index a911ddd9b5e..bdb552c8631 100644
--- a/gdb/break-catch-throw.c
+++ b/gdb/break-catch-throw.c
@@ -238,8 +238,7 @@ print_it_exception_catchpoint (bpstat bs)
bp_temp = b->disposition == disp_del;
uiout->text (bp_temp ? "Temporary catchpoint "
: "Catchpoint ");
- if (!uiout->is_mi_like_p ())
- uiout->field_int ("bkptno", b->number);
+ uiout->field_int ("bkptno", b->number);
uiout->text ((kind == EX_EVENT_THROW ? " (exception thrown), "
: (kind == EX_EVENT_CATCH ? " (exception caught), "
: " (exception rethrown), ")));
@@ -248,7 +247,6 @@ print_it_exception_catchpoint (bpstat bs)
uiout->field_string ("reason",
async_reason_lookup (EXEC_ASYNC_BREAKPOINT_HIT));
uiout->field_string ("disp", bpdisp_text (b->disposition));
- uiout->field_int ("bkptno", b->number);
}
return PRINT_SRC_AND_LOC;
}