diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-07-06 03:53:11 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-07-06 03:53:11 +0000 |
commit | a1226bf96dbb02eb2ef465363ee00cd34fed8120 (patch) | |
tree | 73a08e7502fb48ebc5abea390346d440dbd17d79 /gdb/ui-out.c | |
parent | 51d909187856db97afa04804d794ecbafcebc9f5 (diff) | |
download | gdb-a1226bf96dbb02eb2ef465363ee00cd34fed8120.tar.gz |
Replace:
if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0)
with:
if (ui_out_is_mi_like_p (uiout))
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r-- | gdb/ui-out.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 5fe212bcd06..910cb169c4e 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 |