From 9dc5e2a93611891cdef625066665571ee0007d07 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 6 Jul 2001 03:53:11 +0000 Subject: Replace: if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0) with: if (ui_out_is_mi_like_p (uiout)) --- gdb/ui-out.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gdb/ui-out.c') diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 5fe212b..910cb16 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -190,7 +190,8 @@ struct ui_out_impl default_ui_out_impl = default_text, default_message, default_wrap_hint, - default_flush + default_flush, + 0, /* Does not need MI hacks. */ }; /* The default ui_out */ @@ -712,6 +713,12 @@ gdb_query (struct ui_out *uiout, int qflags, char *qprompt) } #endif +int +ui_out_is_mi_like_p (struct ui_out *uiout) +{ + return uiout->impl->is_mi_like_p; +} + /* default gdb-out hook functions */ static void -- cgit v1.1