* defs.h (XMALLOC): Define.

* gdb-events.sh (XMALLOC): Delete macro.
* gdb-events.c, gdb-events.h: Regenerate.
* gdbarch.sh (XMALLOC): Delete macro.
* gdbarch.c: Regenerate.
* serial.c (XMALLOC): Delete macro.
* ui-file.c (XMALLOC): Ditto.
* ser-unix.h (XMALLOC): Ditto.
* sh-tdep.c (XMALLOC): Ditto.
* ui-out.c (XMALLOC): Ditto.
* utils.c (XMALLOC): Ditto.
* i386-tdep.c (XMALLOC): Ditto.
* gdb-events.c (XMALLOC): Ditto.
* d10v-tdep.c (XMALLOC): Ditto.
* cli-out.c (XMALLOC): Ditto.

* cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
* gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
* ui-file.c, ui-out.c: Ditto.
This commit is contained in:
Andrew Cagney
2002-03-19 02:51:09 +00:00
parent 474c824023
commit 349c5d5f6c
25 changed files with 83 additions and 107 deletions

View File

@@ -1,3 +1,15 @@
2002-03-15 Andrew Cagney <ac131313@redhat.com>
* mi-main.c (XMALLOC): Delete macro.
* mi-out.c (XMALLOC): Ditto.
* mi-parse.c (XMALLOC): Ditto.
* mi-console.c (XMALLOC): Ditto.
* mi-cmd-var.c (XMALLOC): Ditto.
* mi-cmd-break.c (XMALLOC): Ditto.
* mi/mi-cmd-var.c, mi/mi-console.c, mi/mi-out.c: Update copyright
* mi/mi-parse.c: Ditto.
2002-02-24 Andrew Cagney <ac131313@redhat.com>
From wiz at danbala:

View File

@@ -29,11 +29,6 @@
#include "gdb-events.h"
#include "gdb.h"
/* Convenience macro for allocting typesafe memory. */
#undef XMALLOC
#define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
enum
{
FROM_TTY = 0

View File

@@ -1,5 +1,7 @@
/* MI Command Set - varobj commands.
Copyright 2000 Free Software Foundation, Inc.
Copyright 2000, 2002 Free Software Foundation, Inc.
Contributed by Cygnus Solutions (a Red Hat company).
This file is part of GDB.
@@ -27,11 +29,6 @@
#include "value.h"
#include <ctype.h>
/* Convenience macro for allocting typesafe memory. */
#undef XMALLOC
#define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
extern int varobjdebug; /* defined in varobj.c */
static int varobj_update_one (struct varobj *var);

View File

@@ -1,5 +1,7 @@
/* MI Console code.
Copyright 2000, 2001 Free Software Foundation, Inc.
Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Cygnus Solutions (a Red Hat company).
This file is part of GDB.
@@ -23,11 +25,6 @@
#include "mi-console.h"
#include "gdb_string.h"
/* Convenience macro for allocting typesafe memory. */
#undef XMALLOC
#define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
/* MI-console: send output to std-out but correcty encapsulated */
static ui_file_fputs_ftype mi_console_file_fputs;

View File

@@ -42,11 +42,6 @@
#include <ctype.h>
#include <sys/time.h>
/* Convenience macro for allocting typesafe memory. */
#undef XMALLOC
#define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
enum
{
FROM_TTY = 0

View File

@@ -1,5 +1,7 @@
/* MI Command Set - output generating routines.
Copyright 2000 Free Software Foundation, Inc.
Copyright 2000, 2002 Free Software Foundation, Inc.
Contributed by Cygnus Solutions (a Red Hat company).
This file is part of GDB.
@@ -23,12 +25,6 @@
#include "ui-out.h"
#include "mi-out.h"
/* Convenience macro for allocting typesafe memory. */
#ifndef XMALLOC
#define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
#endif
struct ui_out_data
{
int suppress_field_separator;

View File

@@ -1,5 +1,7 @@
/* MI Command Set - MI parser.
Copyright 2000, 2001 Free Software Foundation, Inc.
Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Cygnus Solutions (a Red Hat company).
This file is part of GDB.
@@ -26,9 +28,6 @@
#include <ctype.h>
#include "gdb_string.h"
#undef XMALLOC
#define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE)))
static void
mi_parse_argv (char *args, struct mi_parse *parse)
{