Add support for target specific command line switches to old-style simualtors.
[deliverable/binutils-gdb.git] / gdb / cli-out.c
index 367c92aaf1cc72ec95317c6ed842594fa0219456..bd079f250bb8eccdbcff469443ee94fd21475b07 100644 (file)
@@ -1,5 +1,7 @@
 /* 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;
@@ -45,7 +41,7 @@ static void cli_table_begin (struct ui_out *uiout, int nbrofcols,
 static void cli_table_body (struct ui_out *uiout);
 static void cli_table_end (struct ui_out *uiout);
 static void cli_table_header (struct ui_out *uiout, int width,
-                             enum ui_align alig,
+                             enum ui_align alig, const char *col_name,
                              const char *colhdr);
 static void cli_begin (struct ui_out *uiout, enum ui_out_type type,
                       int level, const char *lstid);
@@ -89,7 +85,8 @@ static struct ui_out_impl cli_ui_out_impl =
   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 */
@@ -147,6 +144,7 @@ cli_table_end (struct ui_out *uiout)
 
 void
 cli_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
+                 const char *col_name,
                  const char *colhdr)
 {
   struct ui_out_data *data = ui_out_data (uiout);
@@ -363,6 +361,7 @@ cli_out_new (struct ui_file *stream)
 
   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);
 }
 
This page took 0.024387 seconds and 4 git commands to generate.