/* Output generating routines for GDB CLI.
- Copyright (C) 1999-2003, 2005, 2007-2012 Free Software Foundation,
- Inc.
+ Copyright (C) 1999-2015 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
Written by Fernando Nasser for Cygnus.
#include "ui-out.h"
#include "cli-out.h"
#include "tui.h"
-#include "gdb_string.h"
-#include "gdb_assert.h"
-
struct tui_ui_out_data
{
struct cli_ui_out_data base;
const char *fldname,
int value)
{
- tui_out_data *data = ui_out_data (uiout);
+ tui_out_data *data = (tui_out_data *) ui_out_data (uiout);
if (data->base.suppress_output)
return;
const char *fldname,
const char *string)
{
- tui_out_data *data = ui_out_data (uiout);
+ tui_out_data *data = (tui_out_data *) ui_out_data (uiout);
if (data->base.suppress_output)
return;
- if (fldname && data->line > 0 && strcmp (fldname, "file") == 0)
+ if (fldname && data->line > 0 && strcmp (fldname, "fullname") == 0)
{
data->start_of_line ++;
if (data->line > 0)
const char *format,
va_list args)
{
- tui_out_data *data = ui_out_data (uiout);
+ tui_out_data *data = (tui_out_data *) ui_out_data (uiout);
if (data->base.suppress_output)
return;
static void
tui_text (struct ui_out *uiout, const char *string)
{
- tui_out_data *data = ui_out_data (uiout);
+ tui_out_data *data = (tui_out_data *) ui_out_data (uiout);
if (data->base.suppress_output)
return;
{
int flags = 0;
- tui_out_data *data = XMALLOC (tui_out_data);
+ tui_out_data *data = XNEW (tui_out_data);
/* Initialize base "class". */
cli_out_data_ctor (&data->base, stream);