/* Output generating routines for GDB CLI.
- Copyright 1999, 2000 Free Software Foundation, Inc.
+
+ Copyright 1999, 2000, 2002 Free Software Foundation, Inc.
+
Contributed by Cygnus Solutions.
Written by Fernando Nasser for Cygnus.
#include "gdb_string.h"
#include "gdb_assert.h"
-/* Convenience macro for allocting typesafe memory. */
-
-#ifndef XMALLOC
-#define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
-#endif
-
struct ui_out_data
{
struct ui_file *stream;
cli_text,
cli_message,
cli_wrap_hint,
- cli_flush
+ cli_flush,
+ 0, /* Does not need MI hacks (i.e. needs CLI hacks). */
};
/* Prototypes for local functions */
struct ui_out_data *data = XMALLOC (struct ui_out_data);
data->stream = stream;
+ data->suppress_output = 0;
return ui_out_new (&cli_ui_out_impl, data, flags);
}